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

New CATMAID error handling #193

Open
clbarnes opened this issue Sep 20, 2019 · 1 comment
Open

New CATMAID error handling #193

clbarnes opened this issue Sep 20, 2019 · 1 comment

Comments

@clbarnes
Copy link
Collaborator

clbarnes commented Sep 20, 2019

As of catmaid/CATMAID#1923 (not released at time of writing), the CATMAID server will return meaningful status codes on errors. The response content still contains the same JSON-serialised exception info, but the status code will no longer be 200. Generally, it will be 500, unless the server raised a ValueError (assumed to be the result of bad inputs, so it's 400), or the user had insufficient privileges (401).

This is a warning that you may need to update your fetch layer (although hopefully it's a welcome change!). Thanks @tomka for making the change.

Tracking issue here: catmaid/CATMAID#1921

@schlegelp
Copy link
Collaborator

schlegelp commented Sep 20, 2019

Thanks for the heads-up - a welcome change indeed! I'll make according changes to Pymaid.

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

No branches or pull requests

2 participants