You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This gets broken by Kraken's API, which is already frustrating for a few other reasons, but one of them is this -- the API always returns an error property in the JSON:
So bcurl may not be that useful in other such cases. The error handling is fairly specific to how the error is formatted and how bcoin and bweb returns it. This library should probably have a different name, merge with brq (#18) to correspond as the client for bweb, or an alternative.
This issue is similar to bcoin-org/brq#7 in that I'm getting unexpected behavior when using bcurl for APIs besides bcoin.
See here:
https://github.com/bcoin-org/bcurl/blob/master/lib/client.js#L211-L217
This gets broken by Kraken's API, which is already frustrating for a few other reasons, but one of them is this -- the API always returns an
error
property in the JSON:https://api.kraken.com/0/public/Ticker?pair=XBTUSD
-->
Even though the error array is empty,
bcurl
detects that the property is there and throws without returning the rest of the object.The text was updated successfully, but these errors were encountered: