编译出错 [Error: Failed to collect page data for /oidc/consent] { type: 'Error' } #8692
-
📦 PlatformOther 📦 Deploymenet modeserver db(lobe-chat-database image) 📌 Version1.107.5 💻 Operating SystemWindows 🌐 BrowserChrome 🐛 Bug Descriptionwindows11 info - Need to disable some ESLint rules? Learn more here: https://nextjs.org/docs/app/api-reference/config/eslint#disabling-rules
📷 Recurrence StepsNo response 🚦 Expected BehaviorNo response 📝 Additional InformationNo response |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
|
👀 @ccc008 Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. |
Beta Was this translation helpful? Give feedback.
-
|
Hi @ccc008! I'm Dosu and I’m helping the lobe-chat team. 你的报错通常是因为 OIDC 或 URL 相关的环境变量未设置或格式错误导致的,比如 NEXTAUTH_URL、APP_URL、ENABLE_OIDC 等。请检查 .env 或部署环境,确保这些变量都已正确填写且没有拼写或格式问题(如不要有多余的引号、空格等)参考1 参考2。 建议重点检查这些变量:
近期有修复 OIDC 路由 URL 问题的更新(1.107.5 之后),建议升级到最新版再试,最新版对 URL 处理和报错有更好的兼容和兜底参考。 如果确认变量都已设置且升级后仍有问题,可以开启 debug 日志,排查 Windows 下环境变量解析或路径问题。 To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
-
|
经过检查发现是 .env 内 APP_URL 没有设置 |
Beta Was this translation helpful? Give feedback.
-
After inspection, it was found that the APP_URL in .env is not set |
Beta Was this translation helpful? Give feedback.
经过检查发现是 .env 内 APP_URL 没有设置