Skip to content

Conversation

@ahmedhamouda78
Copy link
Member

Issue

The chatbot-v1 e2e test is failing with 'You are sending requests at an excessive rate' error from AWS Lex.

Root Cause

The test runs 3 consecutive tests that all hit the same Lex bot without delays, causing rate limiting.

Solution

Added delays between tests in the samples repo to avoid hitting Lex rate limits:

  • 3s delay before each text test
  • 10s delay before the audio test

Testing

This PR uses the matching branch fix/lex-rate-limiting-v2 in amplify-js-samples-staging repo which contains the fix.

Samples PR: https://github.com/aws-amplify/amplify-js-samples-staging/compare/main...fix/lex-rate-limiting-v2

@ahmedhamouda78 ahmedhamouda78 marked this pull request as ready for review January 21, 2026 15:46
@ahmedhamouda78 ahmedhamouda78 added the run-tests run the pr-label workflow label Jan 21, 2026
@ahmedhamouda78 ahmedhamouda78 requested a review from a team as a code owner January 21, 2026 19:45
@ahmedhamouda78 ahmedhamouda78 requested a review from a team as a code owner January 22, 2026 09:44
@ahmedhamouda78 ahmedhamouda78 force-pushed the fix/lex-rate-limiting-v2 branch from a698f87 to 1a5c5a5 Compare January 22, 2026 12:54
@ahmedhamouda78 ahmedhamouda78 force-pushed the fix/lex-rate-limiting-v2 branch from 1a5c5a5 to ab0b7c0 Compare January 22, 2026 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

run-tests run the pr-label workflow

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant