Closed chuan1127 closed 7 months ago
👀 @chuan1127
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。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。
需要一个复现
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
Need a reproduction
需要一个复现
@arvinxx 使用vercel部署最新代码,即0.150.2
,并清理vercel和浏览器cache后,点击随便聊聊
或设置中的默认助手
时,基本是百分百触发,但vercel提供的log无异常
这是我部署的网站:https://lobe-production.vercel.app
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
Need a reproduction
Use vercel to deploy the latest code, that is, 0.150.2
, and after clearing vercel and browser cache, when you click Chat casually
or Default model
in the settings, it is basically 100% triggered.
This is the website I deployed: https://lobe-production.vercel.app
@RubuJam
得看下 Console 报啥错了
@RubuJam
得看下 Console 报啥错了
@arvinxx 刚刚不小心把那个部署删了,现在已经重新部署了,但有个奇特的问题,使用相同的代码和环境变量,部署了两个,但其中一个不会报错,一个会疯狂报错,我在外面,没办法直接提供console信息 会报错:lobe-production.vercel.app 不会报错:lobe-edu.vercel.app
@RubuJam 应该是 DEFAULT_AGENT_CONFIG
配置的识别问题:
plugins 应该是个数组的,被识别成了字符串。导致出问题,你要检查下环境变量是否配置有问题。
@RubuJam 应该是
DEFAULT_AGENT_CONFIG
配置的识别问题:plugins 应该是个数组的,被识别成了字符串。导致出问题,你要检查下环境变量是否配置有问题。
那有可能是我的写法问题,原本是plugins=lobe-image-designer;enableAutoCreateTopic=true;model=gemini-pro;provider=google
我把它改成了下面这个,目前正在部署
enableAutoCreateTopic=true;model=gemini-pro;provider=google;plugins=lobe-image-designer
另外我在edu的那个部署上,没启用任何插件,环境变量为:
enableAutoCreateTopic=true;model=gemini-pro;provider=google
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
@RubuJam It should be an identification issue with the
DEFAULT_AGENT_CONFIG
configuration:plugins should be an array and recognized as a string. If it causes problems, you need to check whether there is a problem with the configuration of the environment variables.
That may be a problem with my writing. It was originally plugins=lobe-image-designer;enableAutoCreateTopic=true;model=gemini-pro;provider=google
I changed it to and currently deploying
enableAutoCreateTopic=true;model=gemini-pro;provider=google;plugins=lobe-image-designer
@RubuJam 试了下的确本地能复现 enableAutoCreateTopic=true;model=gemini-pro;provider=google;plugins=lobe-image-designer
这个的报错,看来是针对插件字段的解析逻辑有缺陷,我修一下吧
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
@RubuJam tried it and it was indeed possible to reproduce the error of
enableAutoCreateTopic=true;model=gemini-pro;provider=google;plugins=lobe-image-designer
. It seems that the parsing logic for the plug-in field is defective. I Fix it
enableAutoCreateTopic=true;model=gemini-pro;provider=google;plugins=lobe-image-designer
enableAutoCreateTopic=true;model=gemini-pro;provider=google;plugins=lobe-image-designer
这个也会报错吗,我的vercel部署一直在排队,还没不清楚情况
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
enableAutoCreateTopic=true;model=gemini-pro;provider=google;plugins=lobe-image-designer
enableAutoCreateTopic=true;model=gemini-pro;provider=google;plugins=lobe-image-designer
Will this also report an error? My vercel deployment has been queued, and I don’t know the situation yet.
@RubuJam 目前看是的,原因是之前解析时,当只存在一个 plugin 时,会解析成字符串而不是数组。我在 #2239 修复了
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
@RubuJam It seems yes at present. The reason is that when parsing before, when there is only one plugin, it will be parsed into a string instead of an array. I fixed it in #2239
✅ @chuan1127
This issue is closed, If you have any questions, you can comment and reply.\ 此问题已经关闭。如果您有任何问题,可以留言并回复。
:tada: This issue has been resolved in version 0.150.5 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
💻 系统环境
Windows
📦 部署环境
Docker
🌐 浏览器
Chrome
🐛 问题描述
点击设置页面,偶尔会出现 Application error: a client-side exception has occurred (see the browser console for more information).再次刷新页面会正常显示
🚦 期望结果
No response
📷 复现步骤
点击设置页面,偶尔会出现 Application error: a client-side exception has occurred (see the browser console for more information).再次刷新页面会正常显示
📝 补充信息
No response