Repository navigation
fix: handle throttled_devices in AM network handler response - #4508
Conversation
Summary by CodeRabbit
WalkthroughThe update enhances the throttling logic in the HTTP response handler to check for both Changes
Suggestions for Improvement
Estimated code review effort1 (30 minutes) 📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (9)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #4508 +/- ##
===========================================
+ Coverage 91.22% 91.24% +0.01%
===========================================
Files 640 641 +1
Lines 33713 33761 +48
Branches 7952 7956 +4
===========================================
+ Hits 30756 30804 +48
- Misses 2692 2722 +30
+ Partials 265 235 -30 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Allure Test reports for this run are available at:
|
07fe294 to
e94dc10
Compare
e94dc10 to
b90b0f5
Compare
|
Allure Test reports for this run are available at:
|
|
Allure Test reports for this run are available at:
|
|



What are the changes introduced in this PR?
Enhanced the AM network handler to properly handle both and in the response when a 429 status is received. Previously, the code only checked for , but now it also checks for and throws appropriate retryable errors when either is present.
What is the related Linear task?
Resolves https://linear.app/rudderstack/issue/INT-3215/amplitude-post-proxy-migration-analysis
Please explain the objectives of your changes below
Any changes to existing capabilities/behaviour, mention the reason & what are the changes ?
Reason: The AM destination API can return both and in the response when rate limits are exceeded. The previous implementation only handled , which could lead to missed throttling scenarios.
Changes:
Any new dependencies introduced with this change?
N/A
Any new generic utility introduced or modified. Please explain the changes.
N/A
Any technical or performance related pointers to consider with the change?
N/A
@coderabbitai review
Developer checklist
Reviewer checklist