-
Notifications
You must be signed in to change notification settings - Fork 21
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
Error Handler #2
Comments
I've started on a change for this that so far returns the full response when the status code isn't 200. I'll try to add something to surface the 400 and 422 errors better. |
Added handling for 400 errors in b5ed19f. I'll try to expand on this but haven't had much opportunity to test it, so if you have examples of other errors you'd like to see handled create an issue with an example request and/or the full response and I'll try to add something. |
You can find this example now in the README:
|
I am using
client.servers.create_server(name='test server', user_id=1, nest_id=2, egg_id=9, memory_limit=0, swap_limit=0, disk_limit=0, location_ids=[1])
what should work, but I keep getting 400 errors, but I can't seem to find how to fix it because the error handler only gives400 client error
and nothing else. I'd suggest editing the error handler so it says what is wrong. (you also may know me from Discord, That Guy#5275)The text was updated successfully, but these errors were encountered: