Cloudreve v3文件主界面报错404

mlmc2os5  于 2021-12-01  发布在  Java
关注(0)|答案(2)|浏览(325)

使用的程序版本是3.3.2 Pro
搭建是由一台服务器做主机另一台反代,两者都为ubuntu18
前段时间还好好的,这两天突然访问主界面提示
:( 请求时出现错误
Request failed with status code 404
下面是控制台报错

xhr.js:175 GET https://cloud.skaa.xyz/api/v3/directory%2F 404
(匿名) @ xhr.js:175
e.exports @ xhr.js:18
e.exports @ dispatchRequest.js:39
Promise.then(异步)
s.request @ Axios.js:64
r.forEach.s.<computed> @ Axios.js:79
(匿名) @ bind.js:11
n.renderPath @ Navigator.js:184
n.componentDidMount @ Navigator.js:151
il @ react-dom.production.min.js:5161
ps @ react-dom.production.min.js:6408
t.unstable_runWithPriority @ scheduler.production.min.js:309
$o @ react-dom.production.min.js:2816
fs @ react-dom.production.min.js:6204
Jl @ react-dom.production.min.js:5895
Yl @ react-dom.production.min.js:5678
Ns @ react-dom.production.min.js:7086
(匿名) @ react-dom.production.min.js:7181
ts @ react-dom.production.min.js:5931
Vs @ react-dom.production.min.js:7180
t.render @ react-dom.production.min.js:7363
6444 @ index.js:34
p @ home:1
6384 @ main.142fb904.chunk.js:1
p @ home:1
i @ home:1
e @ home:1
(匿名) @ main.142fb904.chunk.js:1

估计应该这就是404的报错原因,但是自己不会排查,希望解惑
如需提供其他日志请告诉我获取方法。谢谢

mhd8tkvw

mhd8tkvw1#

这是该文件的标头及请求头

请求 URL: https://cloud.skaa.xyz/api/v3/directory%2F
请求方法: GET
状态代码: 404 
远程地址: 154.208.9.187:443
引用站点策略: strict-origin-when-cross-origin
content-length: 261
content-type: text/html; charset=iso-8859-1
date: Mon, 13 Sep 2021 16:45:27 GMT
server: Apache
:authority: cloud.skaa.xyz
:method: GET
:path: /api/v3/directory%2F
:scheme: https
accept: application/json, text/plain, */*
accept-encoding: gzip, deflate, br
accept-language: zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6
cookie: cloudreve-session=MTYz**************oJa1goZg8
dnt: 1
referer: https://cloud.skaa.xyz/home
sec-ch-ua: "Microsoft Edge";v="93", " Not;A Brand";v="99", "Chromium";v="93"
sec-ch-ua-mobile: ?0
sec-ch-ua-platform: "Windows"
sec-fetch-dest: empty
sec-fetch-mode: cors
sec-fetch-site: same-origin
user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.63 Safari/537.36 Edg/93.0.961.38
2exbekwf

2exbekwf2#

应该就是nginx站点策略的错误。strict-origin-when-cross-origin,试试在nginx里面删除这段,不添加策略看看能不能运行。这个问题之前困惑了我几天,索性直接删掉了。然后正常了。

相关问题