mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[GH-ISSUE #550] Document Upload: Something went wrong :/ Error loading . #12117
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @vexersa on GitHub (Jan 23, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/550
Bug Report
Description
Bug Summary:
Uploading a document ( in this case a .csv) results in the error:
Something went wrong :/
Error loading .
Steps to Reproduce:
Navigate to documents, attempt to upload a file.
Expected Behavior:
File uploads.
Actual Behavior:
Something went wrong :/
Error loading .
Environment
Win11, Chrome
Ollama in WSL
Ollama-WebUI Docker
Reproduction Details
Confirmation:
Logs and Screenshots
Browser Console Logs:
[Include relevant browser console logs, if applicable]
Docker Container Logs:
[Include relevant Docker container logs, if applicable]
Screenshots (if applicable):

Installation Method
Docker
Additional Information
Note
If the bug report is incomplete or does not follow the provided instructions, it may not be addressed. Please ensure that you have followed the steps outlined in the README.md and troubleshooting.md documents, and provide all necessary information for us to reproduce and address the issue. Thank you!
@tjbck commented on GitHub (Jan 23, 2024):
Hi, Thanks for creating this issue! csv file import should just work out of the box, could you share the csv file here with us?
@anzellai commented on GitHub (Jan 23, 2024):
@vexersa if you look at the error carefully you can see that it seems it picked up the file mimetype as "excel's csv", I'm guessing there are some quote chars or linebreaks in your CSV.
Could you try either opening that CSV with Excel again or other software and saving as CSV again?
Excel's CSV and our usual "plain" CSV sometimes has differences in quote chars and linebreaks.
@vexersa commented on GitHub (Jan 23, 2024):
Hi guys,
@tjbck Unfortunately can't share because it has some sensitive data in it. 😔
@anzellai I have opened the CSV and resaved it using Excel. No luck.
Is there a size limit for the file?
@Marclass commented on GitHub (Jan 23, 2024):
@vexersa There's a soft limit for file sizes dictated by the RAM your environment has since the RAG parser loads the entire file into memory at once. How large is the file and how much ram does your docker host have?
Can you open the csv in notepad and see if there are is any excel meta data in the beginning of the file? If it's a plain CSV the file type should be "text/csv"
@Marclass commented on GitHub (Jan 23, 2024):
I was able to make a plaintext csv file that gets flagged as application/vnd.ms-excel, but I haven't had any problems with it getting parsed since the back end goes off of the file extension. The uploaded files are also stored on the docker host, so if they don't have enough disk space it could cause problems too.
I made a PR #554 that adds excel parsers, so you may be able to save it as an xlsx file and get it imported that way. The excel parsers are really slow though.
@vexersa commented on GitHub (Jan 24, 2024):
The Docker host has ~31GB available to it. The CSV is 24MB, but I've tested it with smaller .csvs of ~7MB. I don't think there is a disk space problem.
I've opened the file and don't see any excel meta data. 😕
@vexersa commented on GitHub (Jan 24, 2024):
I think there should be enough space, I haven't specified a limit in Docker Desktop but there's around 50GB free on the drive itself...
I can try the Excel parser PR, thanks!
Is there a list of file extension compatibilities?
Can we use something like vector DB's?
Thanks for the help!
@vexersa commented on GitHub (Jan 24, 2024):
Update:
So interestingly, if I upload the csv to Google Sheets and export it as a csv, it imports...
@tjbck commented on GitHub (Jan 24, 2024):
The problem seems to have been some sort of encoding issue, I'll close this issue and merge the suggested PR above, Thanks!
@max5800 commented on GitHub (Apr 11, 2024):
I'm on Version v0.1.115 and still have issues importing CSV files.
Any suggestions where to start troubleshooting?
@justinh-rahb commented on GitHub (Apr 11, 2024):
3 releases behind. Try updating.
@isidoroDiegoNeves commented on GitHub (Jun 5, 2024):
I did the samething and worked here if someone have the same problem:
So interestingly, if I upload the csv to Google Sheets and export it as a csv, it imports...
@max5800 commented on GitHub (Jun 6, 2024):
Thanks but updating wasn't necessary, the solution was using a correctly formatted csv 🤝