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

Source FB Marketing: Handle errors without API Error Code/Messages #37771

Merged
merged 13 commits into from May 7, 2024

Conversation

ChristoGrab
Copy link
Contributor

@ChristoGrab ChristoGrab commented May 2, 2024

What

Fixes syncs breaking on 503 errors due to the error handling expecting all FacebookRequestErrors to contain an api_error_message, resulting in a TypeError being thrown when the value of api_error_message is None.

Resolves: https://github.com/airbytehq/airbyte-internal-issues/issues/7349

How

  • Updates the traced_exception method to handle FacebookRequestErrors that do not include an api_error_message by using the error's get_message as a fallback.
  • Adds 503 errors to the list of retryable errors.

Review guide

  1. common.py

User Impact

503 errors will be retried and thrown as transient errors if they are not resolved on retry. Any other errors without api_error_message should no longer throw a TypeError, and be raised as TracedExceptions containing the actual error.

Can this PR be safely reverted and rolled back?

  • [✓ ] YES 💚
  • NO ❌

Copy link

vercel bot commented May 2, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
airbyte-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 7, 2024 5:39pm

@ChristoGrab ChristoGrab marked this pull request as ready for review May 2, 2024 17:02
@ChristoGrab ChristoGrab requested a review from a team as a code owner May 2, 2024 17:02
ChristoGrab and others added 2 commits May 7, 2024 13:33
…ce_facebook_marketing/streams/common.py

Co-authored-by: Aldo Gonzalez <168454423+aldogonzalez8@users.noreply.github.com>
@ChristoGrab ChristoGrab merged commit 698f543 into master May 7, 2024
32 checks passed
@ChristoGrab ChristoGrab deleted the christo/facebook-marketing-503-error branch May 7, 2024 20:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/connectors Connector related issues area/documentation Improvements or additions to documentation connectors/source/facebook-marketing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants