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

kmpatx3s  于 6个月前  发布在  其他
关注(0)|答案(4)|浏览(94)

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

bq8i3lrv

bq8i3lrv1#

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.

gwo2fgha

gwo2fgha2#

Hello,
Thanks you for your reply,

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

In 6.df035d4b.chunk.js file:

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

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.

polkgigr

polkgigr3#

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.

dba5bblo

dba5bblo4#

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

相关问题