aws-samples / aws-samples/bedrock-chat

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

Open
#708 1 comment 0 reactions 0 assignees View on GitHub
bug needs investigation
Dominant language
TypeScript
Stars
1.3k
Forks
535
Avg merge
1d 12h
Merged PRs (30d)
10

Description

## 🚨 **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.

Contributor guide

Open the contributing guide

Research direction

Start at the published API path and the named SqsConsumeHandler entry point, then reproduce the failure with a larger message map and inspect the relevant AWS CloudWatch logs. Done means the SQS consumer no longer terminates with an unhandled exception for oversized message maps.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, typescript
Domain
api, backend, cloud
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.