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

Bugfix: Do not require detail field from App Store Connect API error #316

Merged
merged 4 commits into from
Mar 24, 2023

Conversation

priitlatt
Copy link
Contributor

App Store Connect API can respond with error response that has payload like

{
  "errors": [
    {
      "status": "409",
      "source": {
        "pointer": "/data/relationships/appStoreVersion"
      },
      "code": "ENTITY_ERROR.RELATIONSHIP.INVALID.NOT_ALLOWED",
      "id": "272d2697-763d-4994-99cc-e1a77f31843f",
      "title": "Only one appStoreVersion can be present in reviewSubmissions."
    }
  ]
}

Currently it is expected that each error contains a field detail, which might be missing. Make it optional to cope with such response payloads.

@priitlatt priitlatt added the bug Something isn't working label Mar 24, 2023
@priitlatt priitlatt marked this pull request as ready for review March 24, 2023 09:43
@priitlatt priitlatt merged commit a6ce797 into master Mar 24, 2023
@priitlatt priitlatt deleted the bugfix/asc-error-without-details branch March 24, 2023 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants