Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Wizurth opened this issue Apr 23, 2024 · 4 comments
Open

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

Wizurth opened this issue Apr 23, 2024 · 4 comments

Comments

@Wizurth
Copy link

Wizurth commented Apr 23, 2024

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
Copy link
Contributor

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
Copy link
Author

Wizurth commented Apr 24, 2024

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
Copy link
Contributor

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
Copy link
Author

Wizurth commented Apr 24, 2024

As a result, there are two problems:

  • SSL -> Cloudreve doesn't seem to have my ssl certificate, because when I disable my reverse proxy, I get error 525 (SSL Handshake Failed)

  • Reverse Proxy -> When the request goes through the reverse proxy, I send it back as http to the target server (Cloudflare --HTTPS--> Reverse Proxy --HTTP--> Cloudreve)
    403 and 404 errors appear (even in full http).

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants