bitpay / bitcore-explorers

Blockchain APIs for bitcore
http://bitcore.io
MIT License
67 stars 95 forks source link

It tries to parse an error message as if it's a successful response #10

Open dskloet opened 9 years ago

dskloet commented 9 years ago

See: https://github.com/bitpay/bitcore/issues/1076

The network returns "Transaction rejected by network (code -26). Reason: 64: non-canonical" but instead of forwarding this error to the user, it tries to parse it, which results in this useless error: Unexpected token T

maraoz commented 9 years ago

+1, found this same error yesterday