Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: endowment:caip25 error: Received scopeString value(s) for caveat of type \"authorizedScopes\" #30543

Open
haseebrabbani opened this issue Feb 25, 2025 · 7 comments
Assignees
Labels
external-contributor needs-information Needs additional information from the user who reported the issue regression-prod-12.12.0 Regression bug that was found in production in release 12.12.0 Sev1-high High severity; partial loss of service with severe impact upon users, with no workaround. team-wallet-api-platform type-bug Something isn't working

Comments

@haseebrabbani
Copy link

haseebrabbani commented Feb 25, 2025

Describe the bug

When trying to connect using MM with any website (e.g. etherscan) this error is printed to the console and connection fails. This was working a few days ago, so I imagine this is an issue with the latest MM release v12.12 (specifically PR #29824)

Expected behavior

I am able to connect to etherscan without any errors

Screenshots/Recordings

No response

Steps to reproduce

  1. Go to USDC etherscan page https://etherscan.io/token/0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48#writeProxyContract
  2. Click on Connect to Web3 button
  3. Select Metamask wallet
  4. Click Connect button in MM popup
  5. Notice error message in dev console

Error messages or log output

{
    "code": -32603,
    "message": "endowment:caip25 error: Received scopeString value(s) for caveat of type \"authorizedScopes\" that are not supported by the wallet.",
    "data": {
        "cause": {
            "stack": "Error: endowment:caip25 error: Received scopeString value(s) for caveat of type \"authorizedScopes\" that are not supported by the wallet.\n  at Object.validator (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/common-1.js:1:755327)\n  at C.validateCaveat (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/common-2.js:1:438095)\n  at chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/common-2.js:1:437462\n  at Array.map (<anonymous>)\n  at C.constructCaveats (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/common-2.js:1:437448)\n  at C.i (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/common-2.js:1:444188)\n  at C.grantPermissions (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/common-2.js:1:436092)\n  at grantPermissionsForOrigin (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/background-0.js:1:270770)\n  at implementation (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/background-0.js:1:19505)\n  at async chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/background-0.js:1:7481",
            "message": "endowment:caip25 error: Received scopeString value(s) for caveat of type \"authorizedScopes\" that are not supported by the wallet."
        }
    }
}

Detection stage

In production (default)

Version

12.12.0

Build type

None

Browser

Chrome

Operating system

MacOS

Hardware wallet

No response

Additional context

No response

Severity

HIGH as I cannot connect to websites and use them!

@haseebrabbani haseebrabbani added the type-bug Something isn't working label Feb 25, 2025
@github-project-automation github-project-automation bot moved this to To be fixed in Bugs by severity Feb 25, 2025
@github-project-automation github-project-automation bot moved this to To be fixed in Bugs by team Feb 25, 2025
@metamaskbot metamaskbot added external-contributor regression-prod-12.12.0 Regression bug that was found in production in release 12.12.0 labels Feb 25, 2025
@desi desi added the Sev1-high High severity; partial loss of service with severe impact upon users, with no workaround. label Feb 26, 2025
@desi
Copy link
Contributor

desi commented Feb 26, 2025

@haseebrabbani Thank you so much for reporting this issue. Our team is looking into the issue now and we'll report back soon.

@Gudahtt
Copy link
Member

Gudahtt commented Feb 27, 2025

The stack trace suggests that the error is thrown on this line:

await grantPermissionsForOrigin(caip25Approval);

In this case, the dapp is not requesting any specific chains or accounts. Those would come from our UI.

The error suggests that the approved permissions include a chain that is not present in the wallet, but I'm not sure how that would be possible.

@haseebrabbani do you recall deleting a network recently? Do you have any non-default networks configured?

@Gudahtt
Copy link
Member

Gudahtt commented Feb 27, 2025

If you could contact support and provide your state logs (instructions here), it would help us in solving this issue. So far we have been unable to reproduce the problem, but we are seeing other users encountering a similar issue.

@desi desi added the needs-information Needs additional information from the user who reported the issue label Feb 27, 2025
@dlefloch dlefloch moved this from To be triaged to Needs reproduction in Bugs by team Mar 4, 2025
@sleepytanya
Copy link
Contributor

Related Sentry ticket:

#30759

@desi
Copy link
Contributor

desi commented Mar 4, 2025

@haseebrabbani Just checking in with you to see if you are able to provide your state logs as mentioned by @Gudahtt in his previous comment. This would be a big help to us in troubleshooting this issue if you are able.

@mhui
Copy link

mhui commented Mar 6, 2025

have this issue. For me it seems to just have trouble connecting to sites using rainbowkit

@adonesky1 adonesky1 self-assigned this Mar 7, 2025
@adonesky1
Copy link
Contributor

Looking into this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
external-contributor needs-information Needs additional information from the user who reported the issue regression-prod-12.12.0 Regression bug that was found in production in release 12.12.0 Sev1-high High severity; partial loss of service with severe impact upon users, with no workaround. team-wallet-api-platform type-bug Something isn't working
Projects
Status: To be fixed
Status: Needs reproduction
Development

No branches or pull requests

7 participants