Skip to content
This repository was archived by the owner on Dec 26, 2024. It is now read-only.

fix error handling edge case #9

Merged
merged 1 commit into from
Sep 17, 2017
Merged

fix error handling edge case #9

merged 1 commit into from
Sep 17, 2017

Conversation

mvayngrib
Copy link
Contributor

you can reproduce the error by going here: https://api.etherscan.io/api?module=proxy&action=eth_getTransactionByHash&apiKey=ropsten&hash=0x341a97b957f7f454dcc8a231a837048e9e798e03c7e1d98e11a657a12b5d98e0

the hash query param should be txhash, and as you see the error is non-standard (error object vs status):

{"jsonrpc":"2.0","error":{"code":-32602,"message":"Invalid params: expected a hex-encoded hash with 0x prefix."},"id":1}

@sebs sebs merged commit bfcee05 into sebs:master Sep 17, 2017
sebs added a commit that referenced this pull request Aug 30, 2019
fix error handling edge case
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants