quivr icon indicating copy to clipboard operation
quivr copied to clipboard

Error while upload files/crawl website

Open murrenschwalben opened this issue 2 years ago • 8 comments

Dear Github Community,

I am having trouble uploading files and receiving an error message.

To provide some context, I am using Windows 11 Home 22H2 and have downloaded the latest version of Docker from the official website. The error message I am receiving reads as follows: Failed to upload file: {"message":"Request failed with status code 404","name":"AxiosError","stack":"AxiosError: Request failed with status code 404\n at settle (webpack-internal:///(app-client)/./node_modules/axios/lib/core/settle.js:24:12)\n at XMLHttpRequest.onloadend (webpack-internal:///(app-client)/./node_modules/axios/lib/adapters/xhr.js:121:66)","config":{"transitional":{"silentJSONParsing":true,"forcedJSONParsing":true,"clarifyTimeoutError":false},"adapter":["xhr","http"],"transformRequest":[null],"transformResponse":[null],"timeout":0,"xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN","maxContentLength":-1,"maxBodyLength":-1,"env":{},"headers":{"Accept":"application/json, text/plain, /","Authorization":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJhdXRoZW50aWNhdGVkIiwiZXhwIjoxNjg1NDMxOTU2LCJzdWIiOiIwZjFjOTY1OS1hMjY0LTRhNDctOWRkMC02Nzk5M2M3OTA5Y2MiLCJlbWFpbCI6Imx5MTAwNjk4MTczQGdtYWlsLmNvbSIsInBob25lIjoiIiwiYXBwX21ldGFkYXRhIjp7InByb3ZpZGVyIjoiZW1haWwiLCJwcm92aWRlcnMiOlsiZW1haWwiXX0sInVzZXJfbWV0YWRhdGEiOnt9LCJyb2xlIjoiYXV0aGVudGljYXRlZCIsImFhbCI6ImFhbDEiLCJhbXIiOlt7Im1ldGhvZCI6Im90cCIsInRpbWVzdGFtcCI6MTY4NTQyODM1Nn1dLCJzZXNzaW9uX2lkIjoiZjQyNDVjNWUtZmU2Mi00ZTFlLTlkZDMtZTc1MmQzNmVkMjk3In0.BVyBuMYLrMdP68iq3bA6Zpz4dJvBTq2M-8P_YkuHwIs"},"method":"post","url":"undefined/upload","data":{}},"code":"ERR_BAD_REQUEST","status":404}

I would greatly appreciate any guidance on how to resolve this issue. Thank you for your time and assistance.

testquivr

murrenschwalben avatar May 30 '23 06:05 murrenschwalben

This error is raised when your machine has problem connecting to the internet or the backend is not running. Retry uploading with a working internet connection.

adityanandanx avatar May 30 '23 07:05 adityanandanx

This error is raised when your machine has problem connecting to the internet or the backend is not running. Retry uploading with a working internet connection.

Thanks for the help sir! I Switch to another device with the same network, met the alert again, so I think it's the truth... Anyway much appreciated!

murrenschwalben avatar May 30 '23 07:05 murrenschwalben

@murrenschwalben, it appears that your .env file in the frontend directory does not have the NEXT_PUBLIC_BACKEND_URL variable set.

This variable is required for the proper functioning of the application.

You can find detailed instructions on how to set it in the installation steps mentioned in the following link.

Please make sure to follow the instructions carefully to ensure the correct configuration of your environment.

mamadoudicko avatar May 30 '23 07:05 mamadoudicko

THX sir! It worked. I added "NEXT_PUBLIC_BACKEND_URL=http://localhost:5050" like the .env.example file did and it worked. Now the issue's perfectly fixed.

murrenschwalben avatar May 31 '23 03:05 murrenschwalben

@murrenschwalben, it appears that your .env file in the frontend directory does not have the NEXT_PUBLIC_BACKEND_URL variable set.

This variable is required for the proper functioning of the application.

You can find detailed instructions on how to set it in the installation steps mentioned in the following link.

Please make sure to follow the instructions carefully to ensure the correct configuration of your environment.

I already have this but I am still getting mixed content over https, If i force run on http everything works perfectly

Any clues what could be the issue ?

princealirehman1 avatar May 31 '23 08:05 princealirehman1

Seems to be fixed here: https://github.com/StanGirard/quivr/pull/257

mamadoudicko avatar Jun 05 '23 18:06 mamadoudicko

谢谢先生!有效。我像 .env.example 文件一样添加了“NEXT_PUBLIC_BACKEND_URL= http://localhost:5050 ”并且它起作用了。现在问题已经完美解决。

My front end .env have NEXT_PUBLIC_BACKEND_URL=http://localhost:5050, but still happened the same issue, can you tell me the detail how you fixed this issue?

Linus6666 avatar Jun 06 '23 06:06 Linus6666

bump.. I'm still having the same issue

highly-illiquid avatar Jun 10 '23 01:06 highly-illiquid

bump.. I'm still having the same issue

wardle2403 avatar Jul 29 '23 22:07 wardle2403

Has this been solved? 404 usually is a missing page or missing internet connection. But how does Quivr browse the urls, like a chrome plugin? In my instance of Quivr (0.0.61), when adding an url (youtube.com ie) it only saves the damn cookie notices of the urls uploaded and I've been looking for a way to get around this.

sagaholdennoren avatar Aug 24 '23 09:08 sagaholdennoren

Thanks for your contributions, we'll be closing this issue as it has gone stale. Feel free to reopen if you'd like to continue the discussion.

github-actions[bot] avatar Sep 23 '23 12:09 github-actions[bot]