• Login
    • Search
    • Categories
    • Recent
    • Tags
    • Users
    • Groups
    • Rules
    • Help

    Do more on the web, with a fast and secure browser!

    Download Opera browser with:

    • built-in ad blocker
    • battery saver
    • free VPN
    Download Opera

    PushManager.subscribe fails with AbortError

    Opera for computers
    push notificat bug opera desktop
    1
    1
    64
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • K
      kostkafil last edited by

      Hello,

      I encountered a persistent problem when trying to get a service worker script to subscribe to push notifications via PushManager.subscribe(..). After calling the function, Opera prompts the user to confirm that they want to allow notifications. Several seconds after confirmation, the subscription attempt fails with the following error:
      “Uncaught (in promise) AbortError: Registration failed - push service error”.

      The same process works without issue on other browsers, including Chrome and Firefox. It failed on stable version of Opera on both Linux and Windows.

      Likely cause:

      I tracked outgoing network traffic using Mitmproxy, and found that PushManager.subscribe(…) sends, on both Opera and Chrome, a https request to FCM (android.clients.google.com/c2dm/register3).

      The requests from Chrome include headers of the form

      app: com.chrome.linux
      X-subtype: wp:https://www.mySite.com/#3A9FDAEB-1EI2-4X8D-823B-E2ABE9153-V2
      

      and the Google backend responds with a valid registration token.

      For Opera, the X-subtype is missing entirely, and the wp token is instead placed inside the app header:

      app: wp:https://www.mySite.com/#3A9FDAEB-1EI2-4X8D-823B-E2ABE9153-V2
      

      As a result, Opera receives the response “400: Error=invalid subtype”, and the subscription fails.

      When I replayed the requests made by Opera, but modified the “app” and “X-subtype” to match the format used by Chrome, the subscriptions succeeded.

      Has anyone else encounter this? Is this a known bug in Opera?

      "Note: I originally submitted a more detailed report in November 2025 via the official bug reporter under ID: BUG-17550"

      Reply Quote 0
        1 Reply Last reply
      • First post
        Last post

      Computer browsers

      • Opera for Windows
      • Opera for Mac
      • Opera for Linux
      • Opera beta version
      • Opera USB

      Mobile browsers

      • Opera for Android
      • Opera Mini
      • Opera Touch
      • Opera for basic phones

      • Add-ons
      • Opera account
      • Wallpapers
      • Opera Ads

      • Help & support
      • Opera blogs
      • Opera forums
      • Dev.Opera

      • Security
      • Privacy
      • Cookies Policy
      • EULA
      • Terms of Service

      • About Opera
      • Press info
      • Jobs
      • Investors
      • Become a partner
      • Contact us

      Follow Opera

      • Opera - Facebook
      • Opera - Twitter
      • Opera - YouTube
      • Opera - LinkedIn
      • Opera - Instagram

      © Opera Software 1995-