Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- swReg.pushManager.subscribe({
- userVisibleOnly: true,
- applicationServerKey: urlB64ToUint8Array(publicKey),
- }).then(subscriptionJSON => {
- saveSubscription(subscriptionJSON);
- })
- { WebPushError: Received unexpected response code
- at IncomingMessage.<anonymous> (/app/node_modules/web-push/src/web-push-lib.js:316:20)
- at IncomingMessage.emit (events.js:194:15)
- at endReadableNT (_stream_readable.js:1125:12)
- at process._tickCallback (internal/process/next_tick.js:63:19)
- name: 'WebPushError',
- message: 'Received unexpected response code',
- statusCode: 410,
- headers:
- { 'content-type': 'text/plain; charset=utf-8',
- 'x-content-type-options': 'nosniff',
- 'x-frame-options': 'SAMEORIGIN',
- 'x-xss-protection': '1; mode=block',
- date: 'Mon, 27 May 2019 10:11:38 GMT',
- 'content-length': '47',
- 'alt-svc': 'quic=":443"; ma=2592000; v="46,44,43,39"',
- connection: 'close' }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement