lyc8503 / onedrive-cf-index-ng

Another OneDrive public directory listing on Docker / Cloudflare Workers, forked from onedrive-vercel-index.
MIT License
213 stars 282 forks source link

{"error":"Internal server error."} #20

Closed churongcon closed 2 weeks ago

churongcon commented 2 months ago

{"error":"Internal server error."} https://data-doctor-plus.pages.dev/api?path=/

lyc8503 commented 2 months ago

Hello, please try to get the following error message from Cloudflare.

Specifically, open the https://dash.cloudflare.com/redirect?account=pages/view/onedrive-cf-index-ng page and click on it to view the details of your latest deployment. Start capturing the live logs in the Functions tab, at this point, open the page again to access the page with the error and you should be able to grab the latest logs.

pengchangg commented 1 month ago

我出现同样的报错,不过我是在访问 protectedRoutes 中定义的路由报错,我并不能在CF中看到你说的日志面板; image image image 部署地址

lyc8503 commented 1 month ago

@pengchangg

你在 Private 文件夹下创建对应的密码文件了吗?


我并不能在CF中看到你说的日志面板

可能我说的不是非常清楚, 你应该是先点击你截图中的 “部署” 面板, 点击最新的一次部署右侧的查看详细信息.

image

然后再点击函数 Tab, 往下翻才有一个实时日志的选项.

image
lyc8503 commented 1 month ago

@wangwangit001

我看到你在仓库中修改了 clientId 和 obfuscatedClientSecret, 你可以尝试恢复默认的之后再试一次吗?

你为什么要使用自己的 clientId 和 clientSecret 呢, 我的文档中应该没有提到这个步骤, 你在大部分情况下应该也不需要这么做.

wangwangit001 commented 1 month ago

@lyc8503 我用的是E5账号, 恢复之后可以进入授权界面了,但是授权的时候跳转到 http://localhost:9001/, 并没有出现code

lyc8503 commented 1 month ago

@lyc8503 我用的是E5账号, 恢复之后可以进入授权界面了,但是授权的时候跳转到 http://localhost:9001/, 并没有出现code

跳转到 http://localhost:9001/ 是正常的, URL 中没有 code 吗? 请你截图下授权后完整的页面.

wangwangit001 commented 1 month ago

@lyc8503 可以了,非常感谢,刚刚应该是页面缓存的问题,我通过F12看到了请求, 刚刚填入这个code无法识别出来, 我刷新页面后正常了!

lyc8503 commented 2 weeks ago

因长时间未回复关闭, 如仍有问题请携带日志 reopen.