Skip to content

Raise 400 responses as an InvalidRequest#32

Open
benterova wants to merge 1 commit intoccjr:masterfrom
benterova:order-errors
Open

Raise 400 responses as an InvalidRequest#32
benterova wants to merge 1 commit intoccjr:masterfrom
benterova:order-errors

Conversation

@benterova
Copy link

If there is a malformed request, in my case it was passing an array of strings for the "symbols" parameter, the client will return an Order with all nil parameters, instead of rightfully raising an error when it wasn't fulfilled.

This adds checking for 400 errors in various places within the client and raises an InvalidRequest with the error message.

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

Successfully merging this pull request may close these issues.

1 participant