Skip to content

Conversation

@roomote
Copy link
Collaborator

@roomote roomote commented Jun 16, 2025

  • Enhanced error pattern matching to include 'unable to process your request', 'too many tokens', 'please wait', and 'service is temporarily unavailable'
  • Added HTTP status code 429 and AWS ThrottlingException detection
  • Modified streaming error handler to re-throw throttling errors for retry mechanism
  • Updated completePrompt error handler for consistent throttling error treatment
  • Added comprehensive test suite for error handling improvements

This ensures throttling errors are properly identified and trigger automatic retry with exponential backoff instead of showing generic 'Unknown Error' messages.


Important

Improves AWS Bedrock throttling error handling by enhancing detection and ensuring retries, with comprehensive tests added.

  • Error Handling:
    • Enhanced getErrorType() in bedrock.ts to detect throttling errors by HTTP status code 429, AWS metadata, and specific error messages.
    • Modified createMessage() and completePrompt() in bedrock.ts to re-throw throttling errors for retry handling.
    • Updated handleBedrockError() in bedrock.ts to format throttling error messages with guidance.
  • Testing:
    • Added bedrock-error-handling.spec.ts to test enhanced error detection and handling, including various throttling scenarios.

This description was created by Ellipsis for 6ddeb73. You can customize this summary. It will automatically update as commits are pushed.

…mechanism

- Enhanced error pattern matching to include 'unable to process your request', 'too many tokens', 'please wait', and 'service is temporarily unavailable'
- Added HTTP status code 429 and AWS ThrottlingException detection
- Modified streaming error handler to re-throw throttling errors for retry mechanism
- Updated completePrompt error handler for consistent throttling error treatment
- Added comprehensive test suite for error handling improvements

This ensures throttling errors are properly identified and trigger automatic retry with exponential backoff instead of showing generic 'Unknown Error' messages.
@roomote roomote requested review from cte, jr and mrubens as code owners June 16, 2025 21:23
@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. enhancement New feature or request labels Jun 16, 2025
@hannesrudolph hannesrudolph added the Issue/PR - Triage New issue. Needs quick review to confirm validity and assign labels. label Jun 16, 2025
@daniel-lxs daniel-lxs moved this from Triage to PR [Needs Prelim Review] in Roo Code Roadmap Jun 17, 2025
@hannesrudolph hannesrudolph added PR - Needs Preliminary Review and removed Issue/PR - Triage New issue. Needs quick review to confirm validity and assign labels. labels Jun 17, 2025
@daniel-lxs
Copy link
Member

Closing in favor of #4748

@daniel-lxs daniel-lxs closed this Jun 18, 2025
@github-project-automation github-project-automation bot moved this from New to Done in Roo Code Roadmap Jun 18, 2025
@github-project-automation github-project-automation bot moved this from PR [Needs Prelim Review] to Done in Roo Code Roadmap Jun 18, 2025
@roomote roomote deleted the fix-4745 branch June 19, 2025 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request PR - Needs Preliminary Review size:L This PR changes 100-499 lines, ignoring generated files.

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants