bedrock-claude-chat icon indicating copy to clipboard operation
bedrock-claude-chat copied to clipboard

[BUG] Published API causes unhandle exceptions for larger message map

Open jessieweiyi opened this issue 1 year ago β€’ 1 comments

🚨 Please Note 🚨

To ensure efficient investigation of the issue, please fill out the fields below with as much detail as possible. Reports that do not follow this template may be closed without notification. We appreciate your cooperation.

🐞Describe the bug

When using the published API and the message map is too large, it will cause the sqs consumer lambda (SqsConsumeHandler) unhandled exception and terminate.

See the screenshot below.

πŸ”„ To Reproduce

Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

πŸ“· Screenshots

If applicable, add screenshots to help explain your problem.

Image

πŸ”Ž Logs for Chat Issues

If the issue occurs during a chat interaction, please check the following logs on Amazon Cloudwatch Logs and include the relevant entries in your issue:

  • /aws/lambda/BedrockChatStack-BackendApiHandlerXXXX
  • /aws/lambda/BedrockChatStack-WebSocketHandlerXXXX

πŸ”Ž Logs for Bot Creation/Update Issues

If the issue occurs during bot creation or updating, please check the execution records of the AWS Step Functions state machine named EmbeddingStateMachineXXX and include the details in your issue.

πŸ“ Additional context

Add any other context about the problem here.

jessieweiyi avatar Feb 03 '25 11:02 jessieweiyi

The issue is with cdk/lib/api-publishment-stack.ts while creating the sqs handler lambda in the env LARGE_MESSAGE_BUCKET is not configured leading to this error while uploading the file to s3.

cyruxOP avatar Feb 07 '25 09:02 cyruxOP