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

[BUG] error when upload file to chat

Open Alexg61 opened this issue 1 year ago • 7 comments

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:

  1. Go to new chat
  2. Click on attach file
  3. select .md/.log
  4. getting error all the time but when i make resend the whole content is printed on the screen then it works

Screenshots

ATTACHED

Screenshot 2024-07-09 at 10 48 50 Screenshot 2024-07-09 at 10 49 01

Alexg61 avatar Jul 09 '24 08:07 Alexg61

I couldn't reproduce that. Please describe reproduction steps more precisely as much as possible.

statefb avatar Jul 09 '24 08:07 statefb

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: afbeelding

After pressing Resend: afbeelding

I'm using this file as example: dummy.txt

DTheunis avatar Jul 25 '24 13:07 DTheunis

See below for a screen recording:

claudebug

DTheunis avatar Jul 25 '24 13:07 DTheunis

@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.

statefb avatar Jul 26 '24 02:07 statefb

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) claudebug

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 avatar Jul 26 '24 10:07 DTheunis

@DTheunis Let me check, have you tried v1.2.7 and are you truly using the app without any customization and changes?

statefb avatar Jul 29 '24 08:07 statefb

I had same issue with v1.2.7. There are no customizations or changes. The resend button partially works but doesn't decode. スクリーンショット 2024-08-12 23 54 41 スクリーンショット 2024-08-12 23 54 51 スクリーンショット 2024-08-12 23 55 12 スクリーンショット 2024-08-12 23 56 17

sasanquaneuf avatar Aug 12 '24 14:08 sasanquaneuf

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.

Screenshot 2024-08-13 at 14 33 25

statefb avatar Aug 13 '24 05:08 statefb

@statefb Thank you! I tried the same file with Sonnet 3.0, and it worked. Thank you very much for checking.

sasanquaneuf avatar Aug 13 '24 07:08 sasanquaneuf

@sasanquaneuf Thank you for checking. Let me close this issue.

statefb avatar Aug 13 '24 07:08 statefb