MetaMask / metamask-extension

:globe_with_meridians: :electric_plug: The MetaMask browser extension enables browsing Ethereum blockchain enabled websites
https://metamask.io
Other
11.7k stars 4.79k forks source link

[Bug]: The method "debug_traceTransaction" does not exist / is not available. #21611

Open thaarok opened 8 months ago

thaarok commented 8 months ago

Describe the bug

When using debug_traceTransaction method over web3, Metamask returns error The method \"debug_traceTransaction\" does not exist / is not available. When the webpage query the backing RPC server directly, correct response is provided by the server. When using Metamask as a web3 provider, no request is send to the backing RPC proxy, Metamask rejects to handle the method.

Expected behavior

The metamask should pass the query through to the RPC server and provide its response.

Screenshots/Recordings

No response

Steps to reproduce

  1. Go to Remix IDE: http://remix.ethereum.org/
  2. Deploy a contract / send other tx using "Injected provider - Metamask"
  3. Try to debug the deployed tx using "Debug" button in the bottom-right log panel.
  4. Remix will fail to debug the tx with following error message:

Error messages or log output

Returned error: {"jsonrpc":"2.0","error":"The method \"debug_traceTransaction\" does not exist / is not available.","id":6231645777927278}

Version

11.2.0

Build type

None

Browser

Firefox

Operating system

Linux

Hardware wallet

No response

Additional context

No response

Severity

anaamolnar commented 8 months ago

Hello, @hkalina. Thank you for taking the time to send this report. We do not support this method at this time. Even though we do not currently have plans to support it in the near future, I have marked this issue as a feature request and passed it along to the team. Thank you!

georgi-l95 commented 5 months ago

Hey @anaamolnar do you know that is the status of this feature request? We are trying to use debug_traceTransaction on Hedera, but the request never gets to our provider?

I think having this feature will benefit a lot of users, not only on Ethereum, but on Hedera as well.