Skip to content

Fix error response without 'errors' field #972

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

Merged
merged 1 commit into from
May 24, 2022

Conversation

co-stig
Copy link
Contributor

@co-stig co-stig commented May 8, 2022

Our Jira cloud instance does not include "errors" field in some error responses:

{'errorMessages': ["The value 'ABC' does not exist for the field 'project'."], 'warningMessages': []}

This crashes the error processing with KeyError: 'errors', and the client doesn't see the actual error message.

@gonchik gonchik merged commit 7c76c1c into atlassian-api:master May 24, 2022
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