lobe-chat
lobe-chat copied to clipboard
[Bug] Application error: a client-side exception has occurred (see the browser console for more information).
💻 系统环境 | Operating System
macOS
🌐 浏览器 | Browser
Safari
🐛 问题描述 | Bug Description
iphone safari可以正常对话,但是访问有几个功能会出现:“Application error: a client-side exception has occurred (see the browser console for more information).”白屏的信息。
例如:设置->默认助手,还有对话时点击右上角的“三”菜单,就会出现这个问题。
链接电脑查看console错误,显示的是: SyntaxError: Invalid regular expression: invalid group specifier name
🚦 期望结果 | Expected Behavior
No response
📷 复现步骤 | Recurrence Steps
No response
📝 补充信息 | Additional Information
No response
👀 @ohko
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. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
Is there any way to reproduce it? Can you provide your settings file?
有什么方法可以复现的么?提供一下你的设置文件?
没有做任何配置,使用的是Docker部署,部署好后不做其它任何操作,进入这两个功能同样也会出现这个问题。我用PC版的模拟手机尺寸访问没有这个问题,只有真机才能出现这个错误。
docker run -d --restart=unless-stopped --name=lobe -p 3210:3210 -e OPENAI_API_KEY="..." -e OPENAI_PROXY_URL="..." -e ACCESS_CODE=xxx --security-opt seccomp=unconfined lobehub/lobe-chat
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
Is there any way to reproduce it? Can you provide your settings file?
No configuration is done, Docker deployment is used, and no other operations are performed after deployment. This problem will also occur when entering these two functions. I don't have this problem when I use the PC version to access the simulated mobile phone size. This error can only occur on real phones.
docker run -d --restart=unless-stopped --name=lobe -p 3210:3210 -e OPENAI_API_KEY="..." -e OPENAI_PROXY_URL="..." -e ACCESS_CODE=xxx --security-opt seccomp =unconfined lobehub/lobe-chat
设置默认助手 和随便聊聊的菜单是同一个地方。你想一下之前有没有修改过随便聊聊的配置?或者导出下你本地的设置出来
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
Setting the default assistant is in the same place as the casual chat menu. Think about it, have you ever modified the configuration of Casual Chat before? Or export your local settings
设置默认助手 和随便聊聊的菜单是同一个地方。你想一下之前有没有修改过随便聊聊的配置?或者导出下你本地的设置出来
未做过任何配置或修改,Docker部署好后就用手机访问的。iphone上是不是都有这个问题哟。
我用手机访问你们的“https://chat-preview.lobehub.com/settings/agent”演示,也同样白屏报这个错误。
浏览器的UserAgent是:Mozilla/5.0 (iPhone; CPU iPhone OS 16_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.3 Mobile/15E148 Safari/604.1
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
Set default assistant is in the same place as the casual chat menu. Think about it, have you ever modified the configuration of Casual Chat before? Or export your local settings
No configuration or modification has been made. After Docker is deployed, it can be accessed using the mobile phone. Do all iPhones have this problem?
I used my mobile phone to access your "https://chat-preview.lobehub.com/settings/agent" demo, and the same white screen reported this error.
The browser's UserAgent is: Mozilla/5.0 (iPhone; CPU iPhone OS 16_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.3 Mobile/15E148 Safari/604.1
我也是iPhone ,但是是正常的
我两台iphone都不行,一台iphone12(ios14.1),一台iphoneSE2(16.3.1),浏览器版本不兼容?
我在另外一台iphone8(13.2.3)还发现了另外的问题(如图),直接卡在首页了:
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
Neither of my two iPhones work, one is iPhone 12 (ios 14.1) and the other is iPhone SE 2 (16.3.1). Are the browser versions incompatible?
I also found another problem on another iPhone 8 (13.2.3) (as shown in the picture), and it was stuck on the homepage:
这个问题能解决吗?手机上不能使用,好难受。
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
Can this problem be solved? I can't use it on my mobile phone, which is really sad.
这个问题能解决吗?手机上不能使用,好难受。
能否在抹去你的相关密码秘钥等隐私信息后导出一份全局设置上传到这里,我们需要复现才能定位问题
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
Can this problem be solved? I can't use it on my mobile phone, which is really sad.
Can you export a copy of the global settings after erasing your relevant password keys and other private information and upload it here? We need to reproduce it to locate the problem.
这个问题能解决吗?手机上不能使用,好难受。
能否在抹去你的相关密码秘钥等隐私信息后导出一份全局设置上传到这里,我们需要复现才能定位问题
LobeChat-config-v2.json 这是从手机上道出的配置文件。不过我感觉应该是某些代码与浏览器不兼容问题造成的。
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
Can this problem be solved? I can't use it on my mobile phone, which is really sad.
Can you export a copy of the global settings after erasing your relevant password keys and other private information and upload it here? We need to reproduce it to locate the problem.
LobeChat-config-v2.json This is the configuration file from the mobile phone. However, I feel that it is caused by incompatibility between some codes and the browser.
这个问题我也遇到过了,但是访问 https://lobe.ai0x0.com/ 这个大佬部署的 在我的手机上是正常的
我试过 safari 、微信浏览器 ,都是上述错误。
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
I have also encountered this problem, but when I visited https://lobe.ai0x0.com/ and deployed it, it was normal on my mobile phone.
I tried safari and WeChat browser, but the above error occurred.
我两台iphone都不行,一台iphone12(ios14.1),一台iphoneSE2(16.3.1),浏览器版本不兼容?
我在另外一台iphone8(13.2.3)还发现了另外的问题(如图),直接卡在首页了:
![]()
我同事 使用 ios 17 版本的访问正常。
我的手机是ios 16.0.2 访问白屏。
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
Neither of my two iPhones work, one is iPhone12 (ios14.1) and the other is iPhoneSE2 (16.3.1). Are the browser versions incompatible?
I also found another problem on another iPhone8 (13.2.3) (as shown in the picture), and it was stuck on the homepage:
 ![IMG_7704 ) 4zXxd1Gin6Hr5eYSfdRNWwJbH708oAK0)
My colleague uses the iOS 17 version and has normal access.
My phone is ios 16.0.2 and I get a white screen.
这个问题我也遇到过了,但是访问 https://lobe.ai0x0.com/ 这个大佬部署的 在我的手机上是正常的
我试过 safari 、微信浏览器 ,都是上述错误。
@mushan0x0 我用手机测试了,大佬部署的确没有问题,请大佬赐教!
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
I have also encountered this problem, but when I visit https://lobe.ai0x0.com/ and it is deployed by this big guy, it is normal on my mobile phone.
I tried safari and WeChat browser, but the above error occurred.
@mushan0x0 I tested it on my mobile phone. There is indeed no problem with the deployment. Please enlighten me!
https://github.com/lobehub/lobe-chat/discussions/531#discussioncomment-7718087 @ohko @ipengyo 试一下这个配置呢
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
https://github.com/lobehub/lobe-chat/discussions/531#discussioncomment-7718087 @ohko @ipengyo Try this configuration
#531 (comment) @ohko @ipengyo 试一下这个配置呢
谢谢,试过了,不是配置的问题。不用nginx,直接访问docker导出的3210端口仍然出错。使用文章中提到的IP流式也不行,手机未使用代理,直接通过电信网络访问阿里云服务器上部署的docker:3210端口。 按道理说是浏览器兼容问题了,可是 @mushan0x0 部署的为什么就能正常访问呢?同样和ai0x0部署的是同一个版本(0.117.1)。请问你是用docker部署的还是自己编译的呢?
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
#531 (comment) @ohko @ipengyo Try this configuration
Thank you, I tried it, it's not a configuration problem. Without nginx, there is still an error when directly accessing the 3210 port exported by docker. Using the IP streaming method mentioned in the article does not work. The mobile phone does not use a proxy and directly accesses the docker deployed on the Alibaba Cloud server through the telecommunications network: 3210 port. Logically speaking, it is a browser compatibility issue, but why can the one deployed by @mushan0x0 be accessed normally? It is also the same version (0.117.1) deployed as ai0x0. Did you deploy it using docker or compile it yourself?
@ohko 我是自己编译的,但是没加什么兼容性的处理
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
@ohko I compiled it myself, but didn’t add any compatibility processing