Skip to content

Fix error response without 'errors' field - #972

Merged
gonchik merged 1 commit into
atlassian-api:masterfrom
co-stig:master
May 24, 2022
Merged

Fix error response without 'errors' field#972
gonchik merged 1 commit into
atlassian-api:masterfrom
co-stig:master

Conversation

@co-stig

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

Copy link
Copy Markdown
Contributor

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