webpush
webpush copied to clipboard
Opera push got 404 error
I've got this endpoint from Opera with this format: https://fcm.googleapis.com/fcm/send/eeyUfJShsOI:APA91bGJ...
Webpush.payload_send(
message: JSON.generate(message),
endpoint: subscription.endpoint,
p256dh: subscription.p256dh_key,
auth: subscription.auth_key,
vapid: {
subject: subject,
public_key: public_key,
private_key: private_key
}
)
/usr/local/bundle/gems/webpush-1.1.0/lib/webpush/request.rb:172:in `verify_response': host: fcm.googleapis.com, #<Net::HTTPNotFound 404 Not Found readbody=true> (Webpush::InvalidSubscription)
body:
A valid push subscription endpoint should be specified in the URL as such: https://fcm.googleapis.com/wp/dHIoDxE7Hdg:APA91bH1Zj0kNa
The same endpoint still worked in Chrome. Does Opera is not supported by Google’s push endpoint anymore?
I confirm this bug.
I just tested Opera 120 on MacOS using an updated fork and the issue is also present there (BTW can you also post this issue there?).
In any case, this seems like an Opera bug, rather than a bug of this gem. Open Opera then click Help -> Report an issue... Probably it's the best place to report this bug.
Let me know