bedrock-claude-chat
bedrock-claude-chat copied to clipboard
[BUG] error when upload file to chat
Describe the bug
I tried to attach file .md or .log to the chat but getting error as mentioned in the pictures below. until you press resend then the whole content of file is printed on screen
To Reproduce
Filling out this field will help us investigate the issue efficiently. Providing detailed information allows us to set the appropriate priority. We appreciate your cooperation.
Steps to reproduce the behavior:
- Go to new chat
- Click on attach file
- select .md/.log
- getting error all the time but when i make resend the whole content is printed on the screen then it works
Screenshots
ATTACHED
I couldn't reproduce that. Please describe reproduction steps more precisely as much as possible.
We have the same issue - uploading any file to a bot WITHOUT knowledge will first throw an error, until you click 'Resend', then the file content will be output to the chat and the chat will respond.
After sending a file:
After pressing Resend:
I'm using this file as example: dummy.txt
See below for a screen recording:
@DTheunis We're enhancing this feature to handle non-text file on #467, and will be merged soon. Your attachment dummy.txt works on the branch. I'd be glad if you could wait the merge.
I'm having the same issue with the latest version.
(I think you can tell it's the latest version since the content of the file is now encoded rather than fully printed to the chat)
FYI, this is what the console says when I upload the file initially:
SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data onmessage https://claude.cloudar.be/assets/index-6ae23883.js:349 post https://claude.cloudar.be/assets/index-6ae23883.js:349 post https://claude.cloudar.be/assets/index-6ae23883.js:349 ne https://claude.cloudar.be/assets/index-6ae23883.js:351 ne https://claude.cloudar.be/assets/index-6ae23883.js:351 J https://claude.cloudar.be/assets/index-6ae23883.js:676 J https://claude.cloudar.be/assets/index-6ae23883.js:351 ne https://claude.cloudar.be/assets/index-6ae23883.js:351 XNe https://claude.cloudar.be/assets/index-6ae23883.js:351 I0 https://claude.cloudar.be/assets/index-6ae23883.js:40 Ju https://claude.cloudar.be/assets/index-6ae23883.js:40 $X https://claude.cloudar.be/assets/index-6ae23883.js:40 Js https://claude.cloudar.be/assets/index-6ae23883.js:40 cN https://claude.cloudar.be/assets/index-6ae23883.js:40 Os https://claude.cloudar.be/assets/index-6ae23883.js:38 Nl https://claude.cloudar.be/assets/index-6ae23883.js:40 l9 https://claude.cloudar.be/assets/index-6ae23883.js:37 Gb https://claude.cloudar.be/assets/index-6ae23883.js:37 sT https://claude.cloudar.be/assets/index-6ae23883.js:37 CZ https://claude.cloudar.be/assets/index-6ae23883.js:37 U9 https://claude.cloudar.be/assets/index-6ae23883.js:37 Hb https://claude.cloudar.be/assets/index-6ae23883.js:37 Bf https://claude.cloudar.be/assets/index-6ae23883.js:37 Bf https://claude.cloudar.be/assets/index-6ae23883.js:37 createRoot https://claude.cloudar.be/assets/index-6ae23883.js:40 <anonymous> https://claude.cloudar.be/assets/index-6ae23883.js:678 [index-6ae23883.js:349:14405](https://claude.cloudar.be/assets/index-6ae23883.js) onmessage https://claude.cloudar.be/assets/index-6ae23883.js:349 (Async: EventHandlerNonNull) post https://claude.cloudar.be/assets/index-6ae23883.js:349 post https://claude.cloudar.be/assets/index-6ae23883.js:349 ne https://claude.cloudar.be/assets/index-6ae23883.js:351 ne https://claude.cloudar.be/assets/index-6ae23883.js:351 J https://claude.cloudar.be/assets/index-6ae23883.js:676 J https://claude.cloudar.be/assets/index-6ae23883.js:351 ne https://claude.cloudar.be/assets/index-6ae23883.js:351 (Async: EventListener.handleEvent) XNe https://claude.cloudar.be/assets/index-6ae23883.js:351 I0 https://claude.cloudar.be/assets/index-6ae23883.js:40 Ju https://claude.cloudar.be/assets/index-6ae23883.js:40 $X https://claude.cloudar.be/assets/index-6ae23883.js:40 Js https://claude.cloudar.be/assets/index-6ae23883.js:40 cN https://claude.cloudar.be/assets/index-6ae23883.js:40 Os https://claude.cloudar.be/assets/index-6ae23883.js:38 Nl https://claude.cloudar.be/assets/index-6ae23883.js:40 l9 https://claude.cloudar.be/assets/index-6ae23883.js:37 Gb https://claude.cloudar.be/assets/index-6ae23883.js:37 sT https://claude.cloudar.be/assets/index-6ae23883.js:37 CZ https://claude.cloudar.be/assets/index-6ae23883.js:37 (Async: EventListener.handleEvent) U9 https://claude.cloudar.be/assets/index-6ae23883.js:37 Hb https://claude.cloudar.be/assets/index-6ae23883.js:37 Bf https://claude.cloudar.be/assets/index-6ae23883.js:37 Bf https://claude.cloudar.be/assets/index-6ae23883.js:37 createRoot https://claude.cloudar.be/assets/index-6ae23883.js:40 <anoniem> https://claude.cloudar.be/assets/index-6ae23883.js:678 An error occurred while predicting. [index-6ae23883.js:351:9184](https://claude.cloudar.be/assets/index-6ae23883.js) ne https://claude.cloudar.be/assets/index-6ae23883.js:351 (Async: promise callback) ne https://claude.cloudar.be/assets/index-6ae23883.js:351 J https://claude.cloudar.be/assets/index-6ae23883.js:676 J https://claude.cloudar.be/assets/index-6ae23883.js:351 ne https://claude.cloudar.be/assets/index-6ae23883.js:351 (Async: EventListener.handleEvent) XNe https://claude.cloudar.be/assets/index-6ae23883.js:351 I0 https://claude.cloudar.be/assets/index-6ae23883.js:40 Ju https://claude.cloudar.be/assets/index-6ae23883.js:40 $X https://claude.cloudar.be/assets/index-6ae23883.js:40 Js https://claude.cloudar.be/assets/index-6ae23883.js:40 cN https://claude.cloudar.be/assets/index-6ae23883.js:40 Os https://claude.cloudar.be/assets/index-6ae23883.js:38 Nl https://claude.cloudar.be/assets/index-6ae23883.js:40 l9 https://claude.cloudar.be/assets/index-6ae23883.js:37 Gb https://claude.cloudar.be/assets/index-6ae23883.js:37 sT https://claude.cloudar.be/assets/index-6ae23883.js:37 CZ https://claude.cloudar.be/assets/index-6ae23883.js:37 (Async: EventListener.handleEvent) U9 https://claude.cloudar.be/assets/index-6ae23883.js:37 Hb https://claude.cloudar.be/assets/index-6ae23883.js:37 Bf https://claude.cloudar.be/assets/index-6ae23883.js:37 Bf https://claude.cloudar.be/assets/index-6ae23883.js:37 createRoot https://claude.cloudar.be/assets/index-6ae23883.js:40 <anoniem> https://claude.cloudar.be/assets/index-6ae23883.js:678
@DTheunis Let me check, have you tried v1.2.7 and are you truly using the app without any customization and changes?
I had same issue with v1.2.7. There are no customizations or changes.
The resend button partially works but doesn't decode.
Finally I found the cause. The reason failed is the model Sonnet 3.5 does not support file attachment at this moment. More info, please see the doc. To avoid this issue, use Claude 3 models rather than 3.5.
@statefb Thank you! I tried the same file with Sonnet 3.0, and it worked. Thank you very much for checking.
@sasanquaneuf Thank you for checking. Let me close this issue.