Skip to content

Handling errors returned by gdax? #245

@duffar12

Description

@duffar12

How are people handling errors returned by gdax?
For example, lets say I enter an order and gdax returns a http error

401 Unauthorized – Invalid API Key
OR
500 Internal Server Error – We had a problem with our server

How is this handled cleanly?
I can see that all of the gdax authenticated client methods have got the line
r.raise_for_status()
commented out. These lines were all commented out in a change made to the code in may. But there were no comments in the change so I cannot see the reason why this was done.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions