[bug] Error in invocation of runtime.sendMessage
Is there an existing issue for this?
- [x] I have searched the existing issues
RainbowKit Version
2.2.5
wagmi Version
2.15.4
Current Behavior
Go to https://app.aave.com/, inspect the console. See the error:
Uncaught (in promise) TypeError: Error in invocation of runtime.sendMessage(optional string extensionId, any message, optional object options, optional function callback): chrome.runtime.sendMessage() called from a webpage must specify an Extension ID (string) for its first argument.
Same error happens in local.
Expected Behavior
I'm expecting to not have this error.
Steps To Reproduce
Go to https://app.aave.com/ and inspect the console.
Needs to have the Rainbow chrome extension ofc.
Link to Minimal Reproducible Example (CodeSandbox, StackBlitz, etc.)
No response
Anything else?
Chrome version: Version 137.0.7151.69 (Build officiel) (arm64)
This actually seems to be an issue on the wallet side. Does this occur for you on every dApp? Are you eventually able to successfully connect and sign transactions?
Hello, I am also getting the same issue (locally and in production). Every users that connects to my dApp with Rainbow wallet sees the above error in their console.
RainbowKit Version
2.2.4
wagmi Version
2.14.15
same error
here is the source of the error:
https://github.com/rainbow-me/browser-extension/blob/16a6ea85b5a27acaa34e87bd82600202964d1f16/src/core/messengers/internal/tab.ts#L23-L32
This actually seems to be an issue on the wallet side. Does this occur for you on every dApp? Are you eventually able to successfully connect and sign transactions?
@DanielSinclair Yes, it would seem that I can do everything. But when working in a dev env I get this error everytime I refresh and it's a nighmare.
Have you been able to figure out the issue ?
@DanielSinclair Hello, this error kinda ruin the development experience on Next.js. I'd be very happy to help fix this if redirected into the right direction. Thank you 🙏
Looks like it was first spotted in November 2023: https://github.com/rainbow-me/browser-extension/issues/1117
I get this too:
It's really bad for an extension to be spamming the console in this way:
- It's very inconvenient as it makes it harder to spot genuine issues.
- It gives the impression of a low quality product.
Could you have a look at this when you have time pls @DanielSinclair ?