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

MetaMask firefox is swallowing error messages. #5907

Open
MicahZoltu opened this issue Dec 11, 2018 · 9 comments
Open

MetaMask firefox is swallowing error messages. #5907

MicahZoltu opened this issue Dec 11, 2018 · 9 comments

Comments

@MicahZoltu
Copy link

Describe the bug
When looking at the console log output in Firefox, all I get is:

RPC Error: Internal JSON-RPC error. 
Object { code: -32603, message: "Internal JSON-RPC error." }

and if I look at the error response my dapp received I get:

{
  "id": 42,
  "jsonrpc": "2.0",
  "error": {
    "code": -32603,
    "message": "Internal JSON-RPC error."
  }
}

However, if I look in the Firefox AddOn debugger I can see that the actual error was:

{"jsonrpc":"2.0","error":{"code":-32015,"message":"Transaction execution error.","data":"Internal(\"Requires higher than upper limit of 76784210\")"},"id":3305582744}

To Reproduce
Steps to reproduce the behavior:

  1. Open a browser with MetaMask enabled and approved for the page.
  2. in the console do ethereum.sendAsync({...}, console.log, console.log) filled in with a transaction that will fail.
  3. Notice that you get crappy errors in the console.
  4. Notice that in the Firefox AddOn debugger you get good error messages.

Expected behavior
Error message from remote node propagated to user.

Browser details (please complete the following information):

  • OS: Windows 10
  • Browser: Firefox
  • MetaMask Version: 5.1.0
@smithki
Copy link

smithki commented Apr 10, 2019

Possibly related: Firefox and/or MetaMask is garbling error messages with an impossible-to-read stack trace:

MetaMask - RPC Error: value/</<@moz-extension://2de7e800-9f9b-d541-a858-676d51566b24/background.js:1:144859
h@moz-extension://2de7e800-9f9b-d541-a858-676d51566b24/background.js:1:750837
[262]</a.prototype.emit/<@moz-extension://2de7e800-9f9b-d541-a858-676d51566b24/background.js:1:752631
[262]</a.prototype.emit@moz-extension://2de7e800-9f9b-d541-a858-676d51566b24/background.js:1:752701
value@moz-extension://2de7e800-9f9b-d541-a858-676d51566b24/background.js:1:147818
value@moz-extension://2de7e800-9f9b-d541-a858-676d51566b24/background.js:1:147416
value@moz-extension://2de7e800-9f9b-d541-a858-676d51566b24/background.js:1:177831
[475]</c.prototype.apply@moz-extension://2de7e800-9f9b-d541-a858-676d51566b24/background.js:1:941322
[475]</c.prototype.handle@moz-extension://2de7e800-9f9b-d541-a858-676d51566b24/background.js:1:941024
[481]</</a.prototype.handle@moz-extension://2de7e800-9f9b-d541-a858-676d51566b24/background.js:1:944694
[481]</</a.prototype.write@moz-extension://2de7e800-9f9b-d541-a858-676d51566b24/background.js:1:944599
m@moz-extension://2de7e800-9f9b-d541-a858-676d51566b24/background.js:1:1953394
[262]</a.prototype.emit/<@moz-extension://2de7e800-9f9b-d541-a858-676d51566b24/background.js:1:752631
[262]</a.prototype.emit@moz-extension://2de7e800-9f9b-d541-a858-676d51566b24/background.js:1:752701
_@moz-extension://2de7e800-9f9b-d541-a858-676d51566b24/background.js:1:1948233
w@moz-extension://2de7e800-9f9b-d541-a858-676d51566b24/background.js:1:1948048
[867]</</v.prototype.push@moz-extension://2de7e800-9f9b-d541-a858-676d51566b24/background.js:1:1948859
_write@moz-extension://2de7e800-9f9b-d541-a858-676d51566b24/background.js:1:1907743
v@moz-extension://2de7e800-9f9b-d541-a858-676d51566b24/background.js:1:1961008
[869]</</g.prototype.write/a<@moz-extension://2de7e800-9f9b-d541-a858-676d51566b24/background.js:1:1964120
[869]</</g.prototype.write@moz-extension://2de7e800-9f9b-d541-a858-676d51566b24/background.js:1:1964147
m@moz-extension://2de7e800-9f9b-d541-a858-676d51566b24/background.js:1:1330346
[262]</a.prototype.emit/<@moz-extension://2de7e800-9f9b-d541-a858-676d51566b24/background.js:1:752631
[262]</a.prototype.emit@moz-extension://2de7e800-9f9b-d541-a858-676d51566b24/background.js:1:752701
_@moz-extension://2de7e800-9f9b-d541-a858-676d51566b24/background.js:1:1325149
w@moz-extension://2de7e800-9f9b-d541-a858-676d51566b24/background.js:1:1324964
[614]</</v.prototype.push@moz-extension://2de7e800-9f9b-d541-a858-676d51566b24/background.js:1:1325775
[610]</</o.prototype._onMessage@moz-extension://2de7e800-9f9b-d541-a858-676d51566b24/background.js:1:1319725

versus Chrome:

MetaMask - RPC Error: Error: MetaMask Message Signature: User denied message signature.

@wbt
Copy link
Contributor

wbt commented Jul 13, 2020

Chrome is not necessarily better...MetaMask seems to be swallowing messages in multiple places! (Other example here)

@github-actions
Copy link
Contributor

github-actions bot commented Sep 4, 2023

This issue has been automatically marked as stale because it has not had recent activity in the last 90 days. It will be closed in 45 days if there is no further activity. The MetaMask team intends on reviewing this issue before close, and removing the stale label if it is still a bug. We welcome new comments on this issue. We do not intend on closing issues if they report bugs that are still reproducible. Thank you for your contributions.

@github-actions github-actions bot added the stale issues and PRs marked as stale label Sep 4, 2023
@wbt
Copy link
Contributor

wbt commented Oct 9, 2023

After the closure of #8975 & #12646, I don't think this should be closed without an improvement.

@github-actions github-actions bot removed the stale issues and PRs marked as stale label Oct 9, 2023
Copy link
Contributor

github-actions bot commented Jan 7, 2024

This issue has been automatically marked as stale because it has not had recent activity in the last 90 days. It will be closed in 45 days if there is no further activity. The MetaMask team intends on reviewing this issue before close, and removing the stale label if it is still a bug. We welcome new comments on this issue. We do not intend on closing issues if they report bugs that are still reproducible. Thank you for your contributions.

@github-actions github-actions bot added the stale issues and PRs marked as stale label Jan 7, 2024
@wbt
Copy link
Contributor

wbt commented Jan 18, 2024

I still don't think this should be closed without an improvement.

@gauthierpetetin
Copy link
Contributor

Related issue: #20315

Copy link
Contributor

This issue has been automatically marked as stale because it has not had recent activity in the last 90 days. It will be closed in 45 days if there is no further activity. The MetaMask team intends on reviewing this issue before close, and removing the stale label if it is still a bug. We welcome new comments on this issue. We do not intend on closing issues if they report bugs that are still reproducible. Thank you for your contributions.

@github-actions github-actions bot added the stale issues and PRs marked as stale label Jul 11, 2024
@gauthierpetetin gauthierpetetin removed the stale issues and PRs marked as stale label Jul 12, 2024
Copy link
Contributor

This issue has been automatically marked as stale because it has not had recent activity in the last 90 days. It will be closed in 45 days if there is no further activity. The MetaMask team intends on reviewing this issue before close, and removing the stale label if it is still a bug. We welcome new comments on this issue. We do not intend on closing issues if they report bugs that are still reproducible. Thank you for your contributions.

@github-actions github-actions bot added the stale issues and PRs marked as stale label Oct 10, 2024
@gauthierpetetin gauthierpetetin removed the stale issues and PRs marked as stale label Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: To be fixed
Status: To be fixed
Development

No branches or pull requests

7 participants