Skip to content

Opera push got 404 error #115

Description

@huynv-0947

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions