3Alan / DocsMind

🤖 DocsMind allows you to chat with your docs and summarize your docs, support pdf, md.
https://docs-mind.alanwang.site
GNU Affero General Public License v3.0
176 stars 75 forks source link

File upload fail. undefined. #16

Closed thunderwilson closed 1 year ago

thunderwilson commented 1 year ago

Describe the bug Cannot upload PDF documents.

Provide logs Please provide the log located at logs/app.log and the client error (browser console) so that I can better understand the issue.

image

To Reproduce Follow instructions in README.md, hosting on github codespace, and gitpod.

Expected behavior PDF would upload and be indexed.

Screenshots

image
3Alan commented 1 year ago

Can you access your backend service through 127.0.0.1:8080? It seems that your backend service is not running.

thunderwilson commented 1 year ago

This is the response at 8080

image image
thunderwilson commented 1 year ago

I thought it might have something to do with the fact the the gitpod url is unique, so I tried updating .env

VITE_SERVICES_URL="https://8080-thunderwilson-docsmind-844wuco251l.ws-us96b.gitpod.io/"

Still no luck.

Do you perhaps have instructions for deploying to vercel or alternative?

3Alan commented 1 year ago

You are right. You can try replacing 127.0.0.1 with 0.0.0.0 in the code and rebuild it. Also, we cannot deploy to Vercel as their support for Python projects is not very good. You can deploy to any cloud service provider that supports Docker.

thunderwilson commented 1 year ago

Could you provide some guidance on deploying on railway?

3Alan commented 1 year ago

Duplicate https://github.com/3Alan/DocsMind/discussions/17#discussion-5176667