aws-samples / aws-samples/bedrock-chat

[BUG] File upload system error state, users unable to upload further documents in new chats

Open
#998 0 comments 1 reaction 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

Having carried out multiple failed/errored conversations where multiple file uploads were attempted and API failures caused, the user is then unable to upload further files in a 'new chat'.

## 🔄 To Reproduce

Create a new chat, eg with Claude Haiku 4.5, upload 4-5 text files (in total under the 6MB limit), attempt to query with the files, inevitable failure message for whatever reason.

Repeat above frustratedly a few times, like a normal user would.

At some point of repeating the above, the user now attempts to upload just a single doc (less than 6MB) to a query, only to be told "The total file size must be no more than 6 MB.".

## 📷 Screenshots

Image

## 🔎 Logs for Chat Issues

Have checked suggested logs and not found anything

## 📝 Additional context

Logging out doesn't remedy the error state, but waiting for some time seems to.

Document upload handling is generally unstable when subjected to realistic use cases, even within the 5 documents etc limit.

Seems to me like some background process re docs isn't being permitted to complete? Then isn't remedied/cancelled/documents queue cleared adequately when the user goes to create a new chat.

Using app as deployed by Codebuild/Cloud shell

Contributor guide

Open the contributing guide

Research direction

No files, tests, or entry points are named. Reproduce the upload failure sequence across several new chats, then trace the document-upload state and its reset or cleanup between chats; done means a failed upload does not prevent a later valid upload under the 6 MB limit.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.