marco-c / mercurius

Generic Web Push server
https://mozcurius.herokuapp.com/
Apache License 2.0
53 stars 12 forks source link

Mozcurius is failing to send notification #107

Closed zalun closed 8 years ago

zalun commented 8 years ago

Logs

2016-01-27T08:55:09.903381+00:00 app[web.1]: DEBUG: sending notification to: https://updates.push.services.mozilla.com/push/[...]=
2016-01-27T08:55:10.324032+00:00 heroku[router]: at=info method=POST path="/notify" host=mozcurius.herokuapp.com request_id=[...] fwd="162.243.143.106" dyno=web.1 connect=0ms service=440ms status=500 bytes=373
2016-01-27T08:55:10.291685+00:00 app[web.1]: statusCode:  404
2016-01-27T08:55:10.306694+00:00 app[web.1]: headers:  { 'access-control-allow-headers': 'content-encoding,encryption,crypto-key,encryption-key,content-type',
2016-01-27T08:55:10.306697+00:00 app[web.1]:   'access-control-allow-methods': 'POST,PUT',
2016-01-27T08:55:10.306699+00:00 app[web.1]:   'access-control-expose-headers': 'location',
2016-01-27T08:55:10.306701+00:00 app[web.1]:   server: 'cyclone/1.1',
2016-01-27T08:55:10.306698+00:00 app[web.1]:   'access-control-allow-origin': '*',
2016-01-27T08:55:10.306700+00:00 app[web.1]:   date: 'Wed, 27 Jan 2016 08:55:10 GMT',
2016-01-27T08:55:10.306702+00:00 app[web.1]:   'content-length': '84',
2016-01-27T08:55:10.306700+00:00 app[web.1]:   'content-type': 'application/json',
2016-01-27T08:55:10.306702+00:00 app[web.1]:   connection: 'Close' }
2016-01-27T08:55:10.308023+00:00 app[web.1]:   message: 'Received unexpected response code',
2016-01-27T08:55:10.308024+00:00 app[web.1]:   statusCode: 404 }
2016-01-27T08:55:10.308022+00:00 app[web.1]:   name: 'WebPushError',
2016-01-27T08:55:10.308020+00:00 app[web.1]: ERROR:  { [WebPushError: Received unexpected response code]
marco-c commented 8 years ago

Interesting, looks like the push endpoint doesn't exist anymore.

zalun commented 8 years ago

which shouldn't happen as it should selfregister

zalun commented 8 years ago

the same thing happened on localhost. Working fine after I unregister and register again, but that's quite problematic ...

zalun commented 8 years ago

endpoints out of sync