lobe-chat icon indicating copy to clipboard operation
lobe-chat copied to clipboard

[Bug] Application error: a client-side exception has occurred (see the browser console for more information).

Open ohko opened this issue 1 year ago • 44 comments

💻 系统环境 | 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

IMG_8591 WX20231217-210734@2x

🚦 期望结果 | Expected Behavior

No response

📷 复现步骤 | Recurrence Steps

No response

📝 补充信息 | Additional Information

No response

ohko avatar Dec 17 '23 13:12 ohko

👀 @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。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

lobehubbot avatar Dec 17 '23 13:12 lobehubbot

有什么方法可以复现的么?提供一下你的设置文件?

arvinxx avatar Dec 17 '23 13:12 arvinxx

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?

lobehubbot avatar Dec 17 '23 13:12 lobehubbot

有什么方法可以复现的么?提供一下你的设置文件?

没有做任何配置,使用的是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

ohko avatar Dec 18 '23 01:12 ohko

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

lobehubbot avatar Dec 18 '23 01:12 lobehubbot

设置默认助手 和随便聊聊的菜单是同一个地方。你想一下之前有没有修改过随便聊聊的配置?或者导出下你本地的设置出来

arvinxx avatar Dec 18 '23 01:12 arvinxx

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

lobehubbot avatar Dec 18 '23 01:12 lobehubbot

设置默认助手 和随便聊聊的菜单是同一个地方。你想一下之前有没有修改过随便聊聊的配置?或者导出下你本地的设置出来

未做过任何配置或修改,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

ohko avatar Dec 18 '23 03:12 ohko

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

lobehubbot avatar Dec 18 '23 03:12 lobehubbot

我也是iPhone ,但是是正常的 image

arvinxx avatar Dec 18 '23 04:12 arvinxx

我两台iphone都不行,一台iphone12(ios14.1),一台iphoneSE2(16.3.1),浏览器版本不兼容?

我在另外一台iphone8(13.2.3)还发现了另外的问题(如图),直接卡在首页了:

WX20231218-132411@2x IMG_7704

ohko avatar Dec 18 '23 05:12 ohko

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:

WX20231218-132411@2x IMG_7704

lobehubbot avatar Dec 18 '23 05:12 lobehubbot

这个问题能解决吗?手机上不能使用,好难受。

ohko avatar Dec 19 '23 13:12 ohko

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.

lobehubbot avatar Dec 19 '23 13:12 lobehubbot

这个问题能解决吗?手机上不能使用,好难受。

能否在抹去你的相关密码秘钥等隐私信息后导出一份全局设置上传到这里,我们需要复现才能定位问题

canisminor1990 avatar Dec 19 '23 16:12 canisminor1990

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.

lobehubbot avatar Dec 19 '23 16:12 lobehubbot

这个问题能解决吗?手机上不能使用,好难受。

能否在抹去你的相关密码秘钥等隐私信息后导出一份全局设置上传到这里,我们需要复现才能定位问题

LobeChat-config-v2.json 这是从手机上道出的配置文件。不过我感觉应该是某些代码与浏览器不兼容问题造成的。

ohko avatar Dec 20 '23 00:12 ohko

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.

lobehubbot avatar Dec 20 '23 00:12 lobehubbot

这个问题我也遇到过了,但是访问 https://lobe.ai0x0.com/ 这个大佬部署的 在我的手机上是正常的

我试过 safari 、微信浏览器 ,都是上述错误。

ipengyo avatar Dec 28 '23 12:12 ipengyo

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.

lobehubbot avatar Dec 28 '23 12:12 lobehubbot

我两台iphone都不行,一台iphone12(ios14.1),一台iphoneSE2(16.3.1),浏览器版本不兼容?

我在另外一台iphone8(13.2.3)还发现了另外的问题(如图),直接卡在首页了:

WX20231218-132411@2x IMG_7704

我同事 使用 ios 17 版本的访问正常。

我的手机是ios 16.0.2 访问白屏。

ipengyo avatar Dec 28 '23 12:12 ipengyo

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:

![WX20231218-132411@2x](https://private-user-images.githubusercontent.com/4863673/291159043-17086dbe-1f38-4852-b7c1-835d679c2276.png?jwt=eyJhbGciOiJIUzI1NiIsInR5 cCI6IkpXVCJ9..Iy4kWqIfEky_lxoJSbQCO0FqpILDiw0peubh3m7AXD4) ![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.

lobehubbot avatar Dec 28 '23 12:12 lobehubbot

这个问题我也遇到过了,但是访问 https://lobe.ai0x0.com/ 这个大佬部署的 在我的手机上是正常的

我试过 safari 、微信浏览器 ,都是上述错误。

@mushan0x0 我用手机测试了,大佬部署的确没有问题,请大佬赐教!

ohko avatar Dec 28 '23 13:12 ohko

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!

lobehubbot avatar Dec 28 '23 13:12 lobehubbot

https://github.com/lobehub/lobe-chat/discussions/531#discussioncomment-7718087 @ohko @ipengyo 试一下这个配置呢

mushan0x0 avatar Dec 28 '23 14:12 mushan0x0

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

lobehubbot avatar Dec 28 '23 14:12 lobehubbot

#531 (comment) @ohko @ipengyo 试一下这个配置呢

谢谢,试过了,不是配置的问题。不用nginx,直接访问docker导出的3210端口仍然出错。使用文章中提到的IP流式也不行,手机未使用代理,直接通过电信网络访问阿里云服务器上部署的docker:3210端口。 按道理说是浏览器兼容问题了,可是 @mushan0x0 部署的为什么就能正常访问呢?同样和ai0x0部署的是同一个版本(0.117.1)。请问你是用docker部署的还是自己编译的呢?

ohko avatar Dec 29 '23 01:12 ohko

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?

lobehubbot avatar Dec 29 '23 01:12 lobehubbot

@ohko 我是自己编译的,但是没加什么兼容性的处理

mushan0x0 avatar Dec 29 '23 07:12 mushan0x0

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

lobehubbot avatar Dec 29 '23 07:12 lobehubbot