{"action":"opened","issue":{"url":"https://api.github.com/repos/MetaMask/metamask-extension/issues/3487","repository_url":"https://api.github.com/repos/MetaMask/metamask-extension","labels_url":"https://api.github.com/repos/MetaMask/metamask-extension/issues/3487/labels{/name}","comments_url":"https://api.github.com/repos/MetaMask/metamask-extension/issues/3487/comments","events_url":"https://api.github.com/repos/MetaMask/metamask-extension/issues/3487/events","html_url":"https://github.com/MetaMask/metamask-extension/issues/3487","id":303691367,"number":3487,"title":"Make provider errors more useful","user":{"login":"danfinlay","id":542863,"avatar_url":"https://avatars0.githubusercontent.com/u/542863?v=4","gravatar_id":"","url":"https://api.github.com/users/danfinlay","html_url":"https://github.com/danfinlay","followers_url":"https://api.github.com/users/danfinlay/followers","following_url":"https://api.github.com/users/danfinlay/following{/other_user}","gists_url":"https://api.github.com/users/danfinlay/gists{/gist_id}","starred_url":"https://api.github.com/users/danfinlay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danfinlay/subscriptions","organizations_url":"https://api.github.com/users/danfinlay/orgs","repos_url":"https://api.github.com/users/danfinlay/repos","events_url":"https://api.github.com/users/danfinlay/events{/privacy}","received_events_url":"https://api.github.com/users/danfinlay/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-09T01:21:20Z","updated_at":"2018-03-09T01:21:20Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Related to #3140 \r\n\r\nWhen we switched to the new infura provider, we seem to have regressed in error comprehensibility. We are throwing generic `-32603` for a ton of cases.\r\n\r\nHere's one simple web3 call that throws this error:\r\n```\r\nweb3.currentProvider.sendAsync({ method: 'trace_debug', params: ['0x33ab8f2c2f73aaef9e0d1b620d8aeabd37dd8f975bb3743d11278ec13214ba38'], from: web3.eth.accounts[0] }, console.log)\r\n```\r\n\r\nThe response doesn't give us much to go on:\r\n```\r\nerror: code: -32603\r\nid: undefined\r\njsonrpc: undefined\r\n```\r\n\r\nI'll lay that out as our first test-case. We should return at least a \"method not found\" error when a non existent method is thrown. Hopefully while that error message is added, we can pass some more meaningful data back in general, too."}}
{"actor":{"display_login":"danfinlay"}}