cloudreve / Cloudreve

🌩支持多家云存储的云盘系统 (Self-hosted file management and sharing system, supports multiple storage providers)
https://cloudreve.org
GNU General Public License v3.0
21.26k stars 3.35k forks source link

:( Failed to lis files - Request failed with status code 404 (HTTPS) #2078

Open Wizurth opened 2 months ago

Wizurth commented 2 months ago

Hello,

Describe the bug The error appears as soon as I switch to https through cloudflare.

Expected behavior As soon as I access by domain name the error ":( Failed to lis files Request failed with status code 404" appears. What's more, when I want to upload a new file, it tells me: No policy selected.

Using domain name, I can only download files. Using a locally adress (LAN) everything works perfectly.

Tested on Firefox, Opera (Windows) Tested on Firefox (Android) I'm connected in HTTPS through cloudflare and a reverse proxy on my web server. Cloudreve is installed on a docker (Armv7).

Screenshots image

YUDONGLING commented 2 months ago

Hi there,

Could you also give some screenshots of the broswer devtools, so that we can know more exactly about what happened when the error occurs.

Thanks.

Wizurth commented 2 months ago

Hello, Thanks you for your reply,

Here are the devtools screenshots: On the cloud's "My files" page:

image

image

In 6.df035d4b.chunk.js file: image


When I tried again, the error changed and so did the problem files: image image

It looks like the server is refusing access to the data. I've already tried it via another domain name that goes directly without cloudflare and in http, same problem. As soon as it comes from the WAN, the 403 error appears.

YUDONGLING commented 2 months ago

Hi,

It seem you are using cloudflare and this may due to the cloudflare refuse those request, maybe you can try to access site directly without the CDN to check.

Thanks.

Wizurth commented 2 months ago

As a result, there are two problems:

I've tested another domain name, which doesn't work in http when it goes through the reverse proxy, and now that I've taken it out of the reverse proxy, it does work (however, I can't use this domain name except for testing purposes).