Skip to content
This repository was archived by the owner on Mar 3, 2020. It is now read-only.

Handle non-json HTTP errors#57

Merged
CjS77 merged 1 commit intocoinbase:masterfrom
CjS77:cjs77-handle-nonjson-errors
Apr 25, 2016
Merged

Handle non-json HTTP errors#57
CjS77 merged 1 commit intocoinbase:masterfrom
CjS77:cjs77-handle-nonjson-errors

Conversation

@CjS77
Copy link
Contributor

@CjS77 CjS77 commented Apr 25, 2016

If handleHttpError receives a non-JSON body in an error, the method will crash with an uncaught exception.

This PR catches that exception and gracefully passes the error on with the raw error message.

Covers #56 and fixes #55

@jorilallo
Copy link
Contributor

+1

@CjS77 CjS77 merged commit 5e6ade7 into coinbase:master Apr 25, 2016
@CjS77 CjS77 deleted the cjs77-handle-nonjson-errors branch April 25, 2016 20:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Status Code 504 from coinbase causes uncaught error.

2 participants