Closed mohamedhafez closed 5 years ago
Oh and P.S. this seems to be only happening for targets where I'm not using VAPID (I haven't noticed this issue for targets for which I am using VAPID, or at least not yet)
The issue was getting worse so I looked in to it more, it was only occurring for endpoints with https://android.googleapis.com/gcm/send
that we replace with https://gcm-http.googleapis.com/gcm
. It seems that both those endpoints are being shut down at the end of this May, so I'd say its not worth the effort to deal with this. Personally I just emailed those users affected and asked them to re-enable the desktop notifications so they could get the new fcm endpoint, and don't seem to be experiencing the issue any more.
Just since the last few days, I've been getting a lot of temporary 401 HTML responses from just Google, however retrying a few minutes later works with no issue. the fact that its an HTML response makes me think it might be a glitch on Google's end? here's an example response:
If you guys agree this is just some kind of temporary glitch, perhaps we shouldn't be raising an
Unauthorized
error at https://github.com/zaru/webpush/blob/master/lib/webpush/request.rb#L33 that would cause the receiver to think that the registration token is no longer valid?