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

React properly to 422: Validation Failed. Status has already been tak… #261

Merged
merged 8 commits into from
Oct 1, 2024

Conversation

danschwarz
Copy link
Collaborator

This addresses issue #256

@danschwarz
Copy link
Collaborator Author

Updated to ignore more kinds of 422 validation failed errors and to merge cleanly into latest master.

@ihabunek ihabunek merged commit 61843fe into ihabunek:master Oct 1, 2024
6 checks passed
@ihabunek
Copy link
Owner

ihabunek commented Oct 1, 2024

I had to revert this :/ It broke the --json option which expects a response to be returned.

@danschwarz
Copy link
Collaborator Author

That's unfortunate. If I recall correctly, this PR was a bit of a kludge due to the way the API works. I'll have to see if there's a better way to implement that is more compatible.

@danschwarz
Copy link
Collaborator Author

Thinking about getting rid of ApiError and NotFoundError exception throwing, as these are the root cause of the incompatibility with --json.

What do you think?

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.

2 participants