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

BadRequestError is not being used as documentation promises it #209

Closed
pl-jankowskimichal opened this issue Aug 18, 2017 · 3 comments
Closed
Assignees
Labels
V2 V2 Client

Comments

@pl-jankowskimichal
Copy link

So the current definition of BadRequestError is like this:
class BadRequestError(ClientError): """An error showing the request was invalid or could not be understood by the server. The error was returned as a ``400 Bad Request`` response. Resubmitting the request will likely result in the same error. """ pass
Please focus on the last sentence., few days ago we got this:

BadRequestError: connection_error: Tax service currently unavailable, please try again later

I'm not really sure if this is the right place to raise that issue, because basically it seems that it's the Recurly API not returning correct HTTP status (400 instead of 503). Altough I'm pretty sure it will be easier to get to the devs via github then support form :)

@bhelx bhelx self-assigned this Aug 18, 2017
@bhelx
Copy link
Contributor

bhelx commented Aug 18, 2017

@pl-jankowskimichal That's a great point, and one we noted when we last saw this error. I think the API should be returning a 50X error. I'll try to get something worked out for next deploy :)

@bhelx
Copy link
Contributor

bhelx commented Aug 18, 2017

I'll close this ticket when the API change is deployed.

@aaron-junot
Copy link
Contributor

aaron-junot commented Aug 14, 2018

This change has long since been deployed.

@pl-jankowskimichal If you notice any other similar problems, feel free to re-open this issue or open a separate issue. Thanks!

@bhelx bhelx added the V2 V2 Client label Mar 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
V2 V2 Client
Projects
None yet
Development

No branches or pull requests

3 participants