MetaMask / metamask-extension

:globe_with_meridians: :electric_plug: The MetaMask browser extension enables browsing Ethereum blockchain enabled websites
https://metamask.io
Other
11.81k stars 4.82k forks source link

[Bug]: Notifications - •Failed to update OnChain triggers metamask-notifications.ts: 928 Error: Failed to update triggers for push notifications: Error: Failed to create a new registration token #25750

Closed sleepytanya closed 1 month ago

sleepytanya commented 1 month ago

Describe the bug

Every time when user adds a new account there is error in the console.

Error is present in the latest v12.0.0 branch, I'm seeing the error in the v12.1.0 build.

Expected behavior

-

Screenshots/Recordings

v12.0.0 branch

https://github.com/MetaMask/metamask-extension/assets/104780023/c1f0eeb4-4812-41f5-a35c-c84856548270

Screenshot 2024-07-10 at 12 37 00

No error in v12.1.0:

https://github.com/MetaMask/metamask-extension/assets/104780023/ec4b2eb1-0520-4a03-83f1-85cc97d3ae81

Steps to reproduce

  1. Enable Notifications
  2. Add a new account
  3. See the error

Error messages or log output

No response

Version

v12.0.0

Build type

None

Browser

Chrome

Operating system

MacOS

Hardware wallet

No response

Additional context

No response

Severity

No response

Prithpal-Sooriya commented 1 month ago

TY. Jira Ticket created here. Our team will investigate.

Prithpal-Sooriya commented 1 month ago

@matteoscurati can we make sure that push notifications do not block the full notifications flow. Instead push notifications should fail silently and we can resolve this at a later process.

gauthierpetetin commented 1 month ago

Is this a duplicate: https://github.com/MetaMask/metamask-extension/issues/25748

sleepytanya commented 1 month ago

@gauthierpetetin Looks like a different error for the different action. Add a new account vs Turn notifications ON. But I defer to the Notifications team to decide.

Prithpal-Sooriya commented 1 month ago

Lets keep these separate. Some potential fixes may resolve a series of these issues.

Prithpal-Sooriya commented 1 month ago

Tested and fixed in v12.

The slowness is still a thing when enabling/disabling notifications. We are working on improving this (it is mostly API call/backend improvements)