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 Facebook Marketing: improve rate limit error message #37341

Merged
merged 6 commits into from
Apr 17, 2024

Conversation

maxi297
Copy link
Contributor

@maxi297 maxi297 commented Apr 16, 2024

What

Addresses https://github.com/airbytehq/airbyte-internal-issues/issues/7086

How

Commit d3f2db0 fixes various timezone and current working directory issues I had. Setting things to UTC shouldn't be a problem as we set the local time to UTC in the docker container

Commit be7d02d adds the translation of the error to a AirbyteTracedException which will be emitted as-is as part of the error handler. This might not be perfect though as if a rate limit can occur outside of the retry mechanism, the user will still see the old/non-transient error. To mitigate this risk, I've checked the last 5 errors in this table and they all had backoff applied. The ideal solution would be to encapsulate all the Facebook lib stuff but it seems unrealistic as of today given the amount of work it would require. I'll bring the point to the retro so we can discuss about this.

🚨 User Impact 🚨

The user should now see a better looking error when being rate limited.

Copy link

vercel bot commented Apr 16, 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 Apr 17, 2024 0:39am

@octavia-squidington-iii octavia-squidington-iii added the area/documentation Improvements or additions to documentation label Apr 16, 2024
@maxi297 maxi297 requested a review from cmm-airbyte April 16, 2024 14:37
@bazarnov
Copy link
Collaborator

Looks good, still the examples of some improved error messaging would something be nice to have.

Copy link
Contributor

@strosek strosek left a comment

Choose a reason for hiding this comment

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

Minor optional improvement possible. But looks good!

@maxi297 maxi297 merged commit db9c993 into master Apr 17, 2024
35 checks passed
@maxi297 maxi297 deleted the issue-7086/improve-rate-limit-error-message branch April 17, 2024 15:27
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.

4 participants