bitfinexcom / bitfinex-api-go

BITFINEX Go trading API - Bitcoin, Litecoin, and Ether exchange
https://www.bitfinex.com/
MIT License
303 stars 222 forks source link

Getting "data slice too short for position: []interface {}{}" error for all Authenticated endpoints #224

Open shuvofifty opened 3 years ago

shuvofifty commented 3 years ago

Issue type

Brief description

For all authenticated endpoints I am getting "data slice too short for position: []interface {}{}". I checked with the breakpoints and I am getting 200 response but during json unmarshal its giving len range 0. I am using localhost to access those api

Steps to reproduce

Additional Notes:
Daniel1984 commented 3 years ago

Hi @shuvofifty. Thank you for reporting the issue and sorry for delayed response. Have you tired checking your API Keys permissions? You might need to tick Get position and margin info and Claim a position checkboxes ON.

dominikschopf commented 3 years ago

I can confirm @shuvofifty 's report. I experience the same exact issue. HTTP requests are fine, the lib just does not handle it correctly

gummy789j commented 2 years ago

I experience the same exact issue too.

thirthfamous commented 1 year ago

same for me