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

Handle Zendesk API errors #1008

Merged
merged 1 commit into from
Aug 9, 2024
Merged

Handle Zendesk API errors #1008

merged 1 commit into from
Aug 9, 2024

Conversation

AgaDufrat
Copy link
Contributor

@AgaDufrat AgaDufrat commented Aug 9, 2024

Otherwise 500 error is returned. The Client apps can then handle those appropriately.

Ideally calling Zendesk API should be done in a worker that would handle all possible Zendesk API errors with appropriate retry logic (e.g. don’t retry on 409 :conflict). The controller should respond with 202 :accepted status rather than 201 :created.
It is not implemented at this time due to change in delivery priorities (and this work being reprioritised).

alphagov/support#1422


⚠️ This repo is Continuously Deployed: make sure you follow the guidance

Follow these steps if you are doing a Rails upgrade.

Otherwise 500 error is returned. The Client apps can then handle those
appropriately.

Ideally calling Zendesk API should be done in a worker that would handle all
possible Zendesk API errors with appropriate retry logic (e.g. don’t retry on
409 :conflict). The controller should respond with 202 :accepted status rather
than 201 :created.
It is not implemented at this time due to change in delivery priorities (and
this work being reprioritised).
@AgaDufrat AgaDufrat merged commit a921c72 into main Aug 9, 2024
10 checks passed
@AgaDufrat AgaDufrat deleted the handle-zendesk-invalid-errors branch August 9, 2024 16:09
@AgaDufrat AgaDufrat changed the title Handle ZendeskAPI::Error::RecordInvalid errors Handle Zendesk API errors Aug 12, 2024
@AgaDufrat AgaDufrat self-assigned this Aug 12, 2024
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