Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 task done
shuvofifty opened this issue Dec 9, 2020 · 4 comments

Comments

@shuvofifty
Copy link

shuvofifty commented Dec 9, 2020

Issue type

  • bug

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

  • Create a client c
  • then write snap, err := c.Positions.All()
  • snap comes nil and err is data slice too short for position: []interface {}{}
Additional Notes:
  • Quick thing is the request is send to /api-pub.bitfinex.com instead of /api.bitfinex.com as mentioned in the document
@Daniel1984
Copy link
Contributor

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.

@dominiks96
Copy link

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
Copy link

I experience the same exact issue too.

@thirthfamous
Copy link

same for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants
@Daniel1984 @thirthfamous @shuvofifty @gummy789j @dominiks96 and others