chatbot-ui icon indicating copy to clipboard operation
chatbot-ui copied to clipboard

does not process the file

Open legaltextai opened this issue 2 years ago • 7 comments

shows error when i try to upload the file. i am on a paid version Error creating file. Error: JSON object requested, multiple (or no) rows returned. NRS_ CHAPTER 128 - TERMINATION OF PARENTAL RIGHTS.pdf

legaltextai avatar Mar 12 '24 15:03 legaltextai

This should be fixed by PR #1557. Currently the files are limited to 5 Mb, if you try to upload a bigger one it errors out and you have to refresh

fkesheh avatar Mar 13 '24 03:03 fkesheh

This should be fixed by PR #1557. Currently the files are limited to 5 Mb, if you try to upload a bigger one it errors out and you have to refresh

Hi @fkesheh, unfortunately @legaltextai sample is less than half a megabyte. Interestingly If I drag the file via Explorer it works. However if I upload via the "+ New File" > "Create File", I also get the error "Error creating file. Error: JSON object requested, multiple (or no) rows returned.". Vercel returns the below error "[POST] /api/retrieval/process status=400 BAD Request"

@legaltextai please try the above workaround via Explorer, see if that helps.

spammenotinoz avatar Mar 17 '24 23:03 spammenotinoz

Hi @fkesheh sorry to tag you, but thought you may know, which is the code that processes files via the "create file"? Using unmodified codebase, I can drag the file via explorer and upload that way, but not via the "create file". Tried to take a look, but couldn't find it. Via "Create File" also ignores limits set via https://github.com/mckaywrigley/chatbot-ui/pull/1557/files

Uploads work from Mobile Uploads work from Explorer (drag drop) Uploads via the + within Chat work However uploads via "new file\ create file" are returning the Error creating file. Error: JSON object requested, multiple (or no) rows returned. This is for files of any size.

spammenotinoz avatar Mar 23 '24 11:03 spammenotinoz

Mine custom version works fine in both ways and also with this file. The same implementation also works in https://chat.hackerai.co/ for both drag and drop and through the button

image

fkesheh avatar Mar 27 '24 04:03 fkesheh

Hi @fkesheh thank-you for taking the time to respond. OP was referring to upload file the left side bar menu. That also broke for myself after 1557. But is working again after reverting 1557. I might hide the actual upload feature from side-bar, as it's not required when you have the attachments icon and drag\drop functionality.

I checked out https://chat.hackerai.co, and upload works via the left sidebar menu, but suspect you have likely overhauled the interface somewhat. Amazing work you have done there!!

  • The Plug-In's store looks amazing
  • Attachment Icon rather than the Plus
  • Also like how you left aligned the model selection, to be more familiar with the official ChatGPT interface.

I did find a bug on https://chat.hackerai.co, it doesn't let you delete files. No error, the interface just doesn't respond.

spammenotinoz avatar Mar 27 '24 04:03 spammenotinoz

On HackerGPT the user is not allowed to set the name of the file, so the extension is preserved. In chatbot-ui the user is allowed to name the file and the extension is removed. Since we are not pushing the file to vercel anymore, it doesn't know the file extension and this causes a failure in the process.

Here is the fixed version: https://github.com/mckaywrigley/chatbot-ui/pull/1613

fkesheh avatar Mar 27 '24 12:03 fkesheh

Thankyo, confirming this fixes the issue for me.

spammenotinoz avatar Mar 27 '24 12:03 spammenotinoz