部署后出现500错误 #34
-
Beta Was this translation helpful? Give feedback.
Replies: 10 comments 40 replies
-
因为Vercel的4KB环境限制,使得Token只能写死在部署文件中,造成无法自动刷新Token的情况,Token过期自然也就无法访问了。此问题目前暂时无解。 |
Beta Was this translation helpful? Give feedback.
-
来总结几种可能的情况
|
Beta Was this translation helpful? Give feedback.
-
问题找到了 当我共享目录设置为 |
Beta Was this translation helpful? Give feedback.
-
部署后报500 请各位大佬指点下 {
"clientId": "xxxxxxxxxxxxxxxxxxx",
"redirectUri": "http://localhost",
"base": "/",
"authApi": "https://login.microsoftonline.com/common/oauth2/v2.0/token",
"driveApi": "https://graph.microsoft.com/v1.0/me/drive"
} |
Beta Was this translation helpful? Give feedback.
-
类似的情况,以下是我的api.json配置 {
"clientId": "5c12f610-be06-xxxx-xxxx-78ab7acf8e05",
"redirectUri": "http://localhost:3000",
"base": "/共享",
"authApi": "https://login.microsoftonline.com/common/oauth2/v2.0/token",
"driveApi": "https://graph.microsoft.com/v1.0/me/drive"
} 访问https://onedrive-vercel-index-rouge.vercel.app/ ,也就是访问 /共享 的时候是报错500 但是访问 https://onedrive-vercel-index-rouge.vercel.app/Game ,也就是实际OneDrive中 /共享/Game 是可以正常访问查看的 |
Beta Was this translation helpful? Give feedback.
-
可能是分享了根目录或者分享目录是中文文件名的原因,尝试用配置里面默认的 |
Beta Was this translation helpful? Give feedback.
-
btw 在 a488d33 版本下可以正常工作,即使使用根目录进行共享。 |
Beta Was this translation helpful? Give feedback.
-
PR #105 应该解决了这个问题,更新版本即可。 |
Beta Was this translation helpful? Give feedback.
问题找到了
当我共享目录设置为
/FirefoxTheme
时,我如果要访问文件MaterialFox
那么路径为/FirefoxTheme/MaterialFox
,问题就出在中间的
/
上,进行路径字符串拼接时,中间加了
/
(base + '/' + path
)。所以当我设置
base: "/"时
,想访问根目录下的FirefoxTheme
,字符串拼接成了//FirefoxTheme
,所以会报错,而
base
设置为空,访问根目录就没有问题,当
base: "/FirefoxTheme/"
时报错。