webpush icon indicating copy to clipboard operation
webpush copied to clipboard

Intermittent Webpush::Unauthorized errors from FCM

Open mohamedhafez opened this issue 5 years ago • 4 comments
trafficstars

Only in the last month or so, I've intermittently been getting Webpush::Unauthorized errors, with message invalid push subscription endpoint for Chrome users. It only affects 2-3 users, keeps up for about a day for every message sent to those 2-3 users, and then without me changing anything messages to those users start going through without issue. But then a different 2-3 users start having the problem for about a day.

Anybody else experiencing this? Any idea what could be going on?

mohamedhafez avatar Nov 22 '19 23:11 mohamedhafez

I have no idea... You can try to post this issue on the Chromium bug tracker. If you can give them the endpoint they should be able to investigate the specific issue.

collimarco avatar Nov 27 '19 21:11 collimarco

It is possible to refresh endpoint, p256dh, auth just like FCM provides refresh token?

niklat22 avatar Dec 10 '19 05:12 niklat22

Has anyone got any solution for this?

jtundag avatar Jan 29 '20 05:01 jtundag

@mohamedhafez have you been renewing subscriptions? push notification subscriptions periodically expire

SampsonCrowley avatar Feb 18 '20 17:02 SampsonCrowley

@mohamedhafez Do you still see that issue? I haven't seen any problems and this can probably be closed

collimarco avatar Nov 26 '22 23:11 collimarco

Looking at my logs out of all the webpushes I've sent, I've only gotten this like 6 times over the last 6 months, just randomly. It's probably some weird one-off server error happening on FCM's part I'm guessing, and definitely low frequency enough to be ignorable now, so closing the issue

mohamedhafez avatar Nov 27 '22 01:11 mohamedhafez