Open sentry-io[bot] opened 5 months ago
Sentry Issue: METAMASK-MOBILE-2ERS
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
Hi @MetaMask/swaps-engineers , there's been a +100% raise of errors over the past 24h for this Sentry issue
Related:
Sentry Issue: METAMASK-MOBILE-2ERS
Action Item