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

ganache and metamask not working fine #8374

Closed
monica-gahlawat opened this issue Apr 21, 2020 · 6 comments
Closed

ganache and metamask not working fine #8374

monica-gahlawat opened this issue Apr 21, 2020 · 6 comments

Comments

@monica-gahlawat
Copy link

inpage.js:1 MetaMask - RPC Error: [object Object] {code: -32603, message: "[object Object]", data: {…}, stack: "Error: [object Object]↵ at a (chrome-extension:…eogaeaoehlefnkodbefgpgknn/background.js:1:1206771"}

@kumavis
Copy link
Member

kumavis commented Apr 22, 2020

not sure what the underlying layer is, but obviously there is a problem with the error serialization

possibly related MetaMask/eth-json-rpc-middleware#20

@shahafn
Copy link

shahafn commented Apr 22, 2020

Might be related to the bug I encoutnred in #8385 ?

@monica-gahlawat
Copy link
Author

monica-gahlawat commented Apr 23, 2020 via email

@wbt
Copy link
Contributor

wbt commented May 6, 2020

I am seeing something similar where the issue I came here to report was not the cause of the underlying error (I knew before triggering the transaction that it would fail a require statement), but the way MetaMask fails to show any error details such as the reason thrown in require():
image

@adrianmcli
Copy link

If I had to guess, it looks like MetaMask calls .toString() on the error object containing the revert string, causing it to return [object Object] instead of the underlying error object with revert string.

@Gudahtt
Copy link
Member

Gudahtt commented Jan 11, 2021

Thanks for the report! Unfortunately the original issue here doesn't have enough information for us to investigate further. Please re-submit the bug including relevant details such as the MetaMask version, OS and OS version, browser version, as well as more information about the situation you were in when this occurred.

The error serialization issues talked about here are quite concerning on their own though. The ticket #8975 already tracks that problem though, and has a lot more information in it, so I'm going to close this for now and use #8975 for tracking the serialization issues.

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

No branches or pull requests

6 participants