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

{"jsonrpc":"2.0","error":"[ethjs-query] while formatting outputs from RPC '{\"value\":{\"code\":-32603,\"data\":{\"message\":\"Internal Server Error\"}}[Bug]: #19697

Closed
TomWang1 opened this issue Jun 21, 2023 · 12 comments
Assignees
Labels
needs-reproduction Sev2-normal Normal severity; minor loss of service or inconvenience. stale issues and PRs marked as stale team-wallet-api-platform type-bug

Comments

@TomWang1
Copy link

Describe the bug

Returned error: {"jsonrpc":"2.0","error":"[ethjs-query] while formatting outputs from RPC '{"value":{"code":-32603,"data":{"message":"Internal Server Error"}}}'","id":4653223632683671}

Steps to reproduce

连接了arbitrum Goerli进行发币测试,
errored: Returned error: {"jsonrpc":"2.0","error":"[ethjs-query] while formatting outputs from RPC '{"value":{"code":-32603,"data":{"message":"Internal Server Error"}}}'","id":4653223632683613}

Error messages or log output

No response

Version

10.31.1

Build type

None

Browser

Chrome

Operating system

MacOS

Hardware wallet

No response

Additional context

No response

@anaamolnar
Copy link

Hello, @TomWang1. Thanks for reporting! Could you please provide more details about your issue, such as where you encounter this issue, on what dapp and what are the steps you took to produce this? Thank you!

@RutvikGujarati
Copy link

RutvikGujarati commented Jun 22, 2023

I am facing same error on polygon with 2 days .

Returned error: {"jsonrpc":"2.0","error":"[ethjs-query] while formatting outputs from RPC '{"value":{"code":-32603,"data":{"code":-32000,"message":"transaction underpriced"}}}'","id":5320817586457629}

this error was shows when i want to deploy smart contract.

@AndreAnselmo
Copy link

AndreAnselmo commented Jul 8, 2023

I'm having the same problem, in deploying smart contract Remix Ethereum pragma solidity ^0.8.19; vs (metaMask testnet): "creation of errored: Returned error": {"jsonrpc":"2.0","error":"[ethjs-query] while formatting outputs from RPC '{"value":{"code":-32603,"data":{"message":"Internal Server Error"}}}'","id":5305674733413297}

@TomWang1
Copy link
Author

Hello, @TomWang1. Thanks for reporting! Could you please provide more details about your issue, such as where you encounter this issue, on what dapp and what are the steps you took to produce this? Thank you!

我是在https://remix.ethereum.org/ 这上面进行发币操作遇到的

@TomWang1
Copy link
Author

I am facing same error on polygon with 2 days .

Returned error: {"jsonrpc":"2.0","error":"[ethjs-query] while formatting outputs from RPC '{"value":{"code":-32603,"data":{"code":-32000,"message":"transaction underpriced"}}}'","id":5320817586457629}

this error was shows when i want to deploy smart contract.

You should raise the GAS fee to solve it,

@TomWang1
Copy link
Author

I'm having the same problem, in deploying smart contract Remix Ethereum pragma solidity ^0.8.19; vs (metaMask testnet): "creation of errored: Returned error": {"jsonrpc":"2.0","error":"[ethjs-query] while formatting outputs from RPC '{"value":{"code":-32603,"data":{"message":"Internal Server Error"}}}'","id":5305674733413297}

me too

@danjm danjm added needs-reproduction Sev2-normal Normal severity; minor loss of service or inconvenience. team-wallet-api-platform and removed needs-triage labels Jul 25, 2023
@danjm
Copy link
Contributor

danjm commented Jul 25, 2023

我是在https://remix.ethereum.org/ 这上面进行发币操作遇到的

I encountered it when I issued coins on https://remix.ethereum.org/

@TomWang1
Copy link
Author

我是在https://remix.ethereum.org/ 这上面进行发币操作遇到的

I encountered it when I issued coins on https://remix.ethereum.org/

thank u

@AndreAnselmo
Copy link

AndreAnselmo commented Jul 28, 2023

Welcome to Remix 0.34.1

Your files are stored in indexedDB, 2.91 KB / 329.71 MB used

You can use this terminal to:
Check transactions details and start debugging.
Execute JavaScript scripts:

  • Input a script directly in the command line interface
  • Select a Javascript file in the file explorer and then run remix.execute() or remix.exeCurrent() in the command line interface
  • Right click on a JavaScript file in the file explorer and then click Run
    The following libraries are accessible:
    web3 version 1.5.2
    ethers.js
    remix
    Type the library name to see available commands.
    creation of ENChain pending...
    creation of ENChain errored: Returned error: {"jsonrpc":"2.0","error":"[ethjs-query] while formatting outputs from RPC '{"value":{"code":-32603,\

I encountered it when I issued coins on https://remix.ethereum.org/

@Laaopo
Copy link

Laaopo commented Sep 12, 2023

Returned error: {"jsonrpc":"2.0","error":"[ethjs-query] while formatting outputs from RPC '{"value":{"code":-32603,"data\

how to solve

brad-decker added a commit that referenced this issue Sep 26, 2023
## **Description**
Our fork of ethjs-query has been namespaced to the `@metamask/`
namespace, and updated with mostly development only fixes. There is one
exception which is the reason for this pull request which is the removal
of a try/catch that was catching too broadly and wrapping legitimate
errors in a new Error object that claimed the issue was with the
formatting of the output. In most cases this is incorrect and results in
a wide swath of errors being lumped together inside of sentry. This
change will result in the real errors being surfaced, after which we can
decide where to prioritize efforts to resolve RPC issues.

This PR progresses, and is expected to change the stack trace for the
following issues:
#9317 
#10519 
#10619
#11488 
#11974 
#13395 
#14298 
#14365 
#15250 
#17073 
#17803 
#19697 
#20699 

We are closing these issues opened automatically by sentry-io which are
not fully resolved but should result in better errors and stack traces:

fixes #10552 
fixes #14660 
fixes #14676 
fixes #14730 
fixes #14801
fixes #15065 

## **Manual testing steps**
1. Attempt to reproduce any of the bugs listed, 17073 was the easiest to
reproduce for me. This involves getting test currency from the wemix
faucet as listed in the issue and initiating a transaction between two
accounts you own.
2. On develop you'll see an 'error formatting outputs' error text
similar to what is reported in the issue.
3. On this branch you'll get the original error, without the wrapped
'formatting' error. including a different stack trace.

## **Pre-merge author checklist**

- [x] I’ve followed [MetaMask Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/CODING_GUIDELINES.md).
- [x] I've clearly explained:
  - [x] What problem this PR is solving.
  - [x] How this problem was solved.
  - [x] How reviewers can test my changes.
- [x] I’ve indicated what issue this PR is linked to: Fixes #???
- [x] I’ve included tests if applicable.
- [x] I’ve documented any added code.
- [x] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/LABELING_GUIDELINES.md)).
- [x] I’ve properly set the pull request status:
  - [ ] In case it's not yet "ready for review", I've set it to "draft".
- [x] In case it's "ready for review", I've changed it from "draft" to
"non-draft".

## **Pre-merge reviewer checklist**

- [ ] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [ ] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.

---------

Co-authored-by: MetaMask Bot <[email protected]>
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.

@vandan
Copy link

vandan commented Mar 15, 2024

This issue is no longer reproducible. See our notes for the detail about why the issue is resolved.

@vandan vandan closed this as completed Mar 15, 2024
@github-project-automation github-project-automation bot moved this from To be fixed to Fixed in Bugs by severity Mar 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-reproduction Sev2-normal Normal severity; minor loss of service or inconvenience. stale issues and PRs marked as stale team-wallet-api-platform type-bug
Projects
Archived in project
Development

No branches or pull requests

9 participants