Skip to content

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

@shuvofifty

Description

@shuvofifty

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions