MetaMask / metamask-mobile

Mobile web browser providing access to websites that use the Ethereum blockchain
https://metamask.io
Other
2.15k stars 1.11k forks source link

[Sentry] Error: {"code":-32603,"message":"Internal JSON-RPC error.","data":{"code":-32000,"message":"err: insuffi... #9715

Open sentry-io[bot] opened 5 months ago

sentry-io[bot] commented 5 months ago

Sentry Issue: METAMASK-MOBILE-2ERS

Action Item

sentry-io[bot] commented 5 months ago

Sentry Issue: METAMASK-MOBILE-2ERS

sentry-io[bot] commented 5 months ago

Sentry Issue: METAMASK-MOBILE-2DVH https://github.com/MetaMask/metamask-mobile/blob/main/app/util/Logger/index.ts#L75 The request:

["RPC (matcha.xyz):",{"method":"wallet_getCapabilities","params":["******************************************"],"jsonrpc":"2.0","id":1913329581,"toNative":true,"origin":"matcha.xyz"},"->",{"id":1913329581,"jsonrpc":"2.0","error":{"code":-32601,"message":"The method \"wallet_getCapabilities\" does not exist / is not available.","data":{"origin":"matcha.xyz"}}}]

the error response that is logged as a string instead of an Error:

{"code":-32601,"message":"The method \"wallet_getCapabilities\" does not exist / is not available.","data":{"origin":"matcha.xyz"}}

This error is logged as string as it's not passed to logger as Error. There's only a few places in the app doing that. Settings, but it doesn't seem to call RPCs, and https://github.com/MetaMask/metamask-mobile/blob/b9bfc7cdd09dc99dae7f3eb70688822ba2482f78/app/components/UI/Swaps/SwapsLiveness.ts#L37-L38

gauthierpetetin commented 3 months ago

Hi @MetaMask/swaps-engineers , there's been a +100% raise of errors over the past 24h for this Sentry issue

legobeat commented 6 days ago

Related: