lobehub / lobe-chat

🤯 Lobe Chat - an open-source, modern-design AI chat framework. Supports Multi AI Providers( OpenAI / Claude 3 / Gemini / Ollama / Azure / DeepSeek), Knowledge Base (file upload / knowledge management / RAG ), Multi-Modals (Vision/TTS) and plugin system. One-click FREE deployment of your private ChatGPT/ Claude application.
https://chat-preview.lobehub.com
Other
40.22k stars 9.13k forks source link

[Bug] user auth 和 access code 冲突 #2938

Closed z-mio closed 1 week ago

z-mio commented 2 months ago

📦 部署环境

Vercel

📌 软件版本

v1.0.11

💻 系统环境

Windows

🌐 浏览器

Chrome

🐛 问题描述

配置 user authaccess code 不会默认失效, 导致上传文件时错误 image

📷 复现步骤

同时配置 user authaccess code

🚦 期望结果

配置 user authaccess code 默认失效

📝 补充信息

No response

lobehubbot commented 2 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


📦 Deployment environment

Vercel

📌 Software version

v1.0.11

💻 System environment

Windows

🌐 Browser

Chrome

🐛 Problem description

After configuring user auth, access code will not be invalid by default, resulting in an error when uploading files. image

📷 Steps to reproduce

Configure user auth and access code at the same time

🚦 Expected results

After configuring user auth, access code will be invalid by default.

📝 Supplementary information

No response

lobehubbot commented 2 months ago

👀 @z-mio

Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. Please make sure you have given us as much context as possible.\ 非常感谢您提交 issue。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

cy948 commented 2 months ago

user auth 指 clerk 还是 nextauth?

lobehubbot commented 2 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


user auth refers to clerk or nextauth?

z-mio commented 2 months ago

clerk, 没测试过nextauth, 不过应该是环境变量问题 同时添加 user authaccess code 的环境变量, 会冲突

lobehubbot commented 2 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


clerk, I haven’t tested nextauth, but it may be an environment variable issue. Adding environment variables of user auth and access code at the same time will conflict

gaarry commented 2 months ago

确实,删除 access code 的环境变量,照片就能正常上传了。

lobehubbot commented 2 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Indeed, by deleting the access code environment variable, photos can be uploaded normally.

lobehubbot commented 1 week ago

✅ @z-mio

This issue is closed, If you have any questions, you can comment and reply.\ 此问题已经关闭。如果您有任何问题,可以留言并回复。