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

[connectors] Cast known Zendesk errors #8917

Merged
merged 5 commits into from
Nov 26, 2024
Merged

Conversation

aubin-tchoi
Copy link
Contributor

Description

  • Add an interceptor on the Zendesk worker to re-cast known Zendesk errors.
  • Error casted are: 403, expired cursor and EPIPE.

Risk

Low.

Deploy Plan

  • Deploy connectors.

@aubin-tchoi aubin-tchoi self-assigned this Nov 26, 2024
Copy link
Contributor

@fontanierh fontanierh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

throw new ProviderWorkflowError(
"zendesk",
"Cursor expired",
"transient_upstream_activity_error",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we think this one will be transient ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actually this one is not transient, the activity here is part of a whole bunch of paginated activities that is transient as a whole

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should I just put a unhandled_internal_activity_error?

Copy link
Contributor

@fontanierh fontanierh Nov 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah because the retry is at the page level no ? So if we end up with this error we're stuck

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

understood thanks 👍

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@aubin-tchoi aubin-tchoi merged commit 5406742 into main Nov 26, 2024
3 checks passed
@aubin-tchoi aubin-tchoi deleted the zendesk/cast-known-errors branch November 26, 2024 15:58
overmode pushed a commit that referenced this pull request Nov 27, 2024
* add a few error types and checks

* add `ZendeskCastKnownErrorsInterceptor`

* add the interceptor to the worker

* fix: remove redundant checks for known errors

* fix: fix the error type of expired cursor errors
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