Guest User

Untitled

a guest
Jun 16th, 2019
61
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. swReg.pushManager.subscribe({
  2. userVisibleOnly: true,
  3. applicationServerKey: urlB64ToUint8Array(publicKey),
  4. }).then(subscriptionJSON => {
  5. saveSubscription(subscriptionJSON);
  6. })
  7.  
  8. { WebPushError: Received unexpected response code
  9. at IncomingMessage.<anonymous> (/app/node_modules/web-push/src/web-push-lib.js:316:20)
  10. at IncomingMessage.emit (events.js:194:15)
  11. at endReadableNT (_stream_readable.js:1125:12)
  12. at process._tickCallback (internal/process/next_tick.js:63:19)
  13. name: 'WebPushError',
  14. message: 'Received unexpected response code',
  15. statusCode: 410,
  16. headers:
  17. { 'content-type': 'text/plain; charset=utf-8',
  18. 'x-content-type-options': 'nosniff',
  19. 'x-frame-options': 'SAMEORIGIN',
  20. 'x-xss-protection': '1; mode=block',
  21. date: 'Mon, 27 May 2019 10:11:38 GMT',
  22. 'content-length': '47',
  23. 'alt-svc': 'quic=":443"; ma=2592000; v="46,44,43,39"',
  24. connection: 'close' }
RAW Paste Data