Skip to content
This repository was archived by the owner on Apr 6, 2023. It is now read-only.

Add extra error classes to handle server errors. #1

Merged
merged 2 commits into from
May 6, 2021

Conversation

emancu
Copy link

@emancu emancu commented May 6, 2021

In order to provide more granularity on the exceptions, we are adding some additional error classes for the common Server errors.

Motivation

json_api_client doesn't give us enough granularity on the exceptions. Adding some additional clauses for the common ones like 502, 503, 504, 429 in here (e.g. JsonApiClient::GatewayTimeoutError) and then adding them into CarwowCore::Retryable in here to retry on before we start raising to bugsnag/counting as failures on HC would be good way to reduce the noise on both platform.

e.g. https://app.bugsnag.com/carwow/dealers-site/errors/6065a65c547bc400077c0f54?event_id=606c65b000773cede9540000&i=pd&m=eu

and

https://app.bugsnag.com/carwow/dealers-site/errors/6065a65c547bc400077c0f54?event_id=606f05a1007737366dfe0000&i=pd&m=eu

See the whole conversation: https://carwow.slack.com/archives/C011H6KGV8S/p1617892756054600

https://carwow.kanbanize.com/ctrl_board/36/cards/32474/

In order to provide more granularity on the exceptions, we are adding some additional
error classes for the common Server errors.
@emancu emancu self-assigned this May 6, 2021
@emancu
Copy link
Author

emancu commented May 6, 2021

JsonApiClient#382

@emancu emancu merged commit c0f2ec2 into master May 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants