Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] #4580

Open
retaw106 opened this issue Nov 2, 2024 · 4 comments
Open

[Bug] #4580

retaw106 opened this issue Nov 2, 2024 · 4 comments
Labels
🐛 Bug Something isn't working | 缺陷 📱 Mobile Device Issue in mobile view | 移动设备 tts TTS/STT

Comments

@retaw106
Copy link

retaw106 commented Nov 2, 2024

📦 部署环境

Docker

📌 软件版本

1.26.17

💻 系统环境

Windows, Android

🌐 浏览器

Firefox, Other

🐛 问题描述

在firefox浏览器或手机浏览器上无法使用语音输入,弹出提示框“很抱歉,服务器似乎遇到了一些困难,暂时无法完成您的请求,请稍后再试”。使用chrome浏览器则语音输入正常。
docker日志如下:

lobe-chat  |  ⨯ TypeError: terminated
lobe-chat  |     at _Fetch.onAborted (eval at requireWithFakeGlobalScope (/app/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected][email protected][email protected][email protected]/node_modules/next/dist/compiled/edge-runtime/index.js:1:655888), <anonymous>:12205:53)
lobe-chat  |     at _Fetch.emit (node:events:519:28)
lobe-chat  |     at _Fetch.terminate (eval at requireWithFakeGlobalScope (/app/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected][email protected][email protected][email protected]/node_modules/next/dist/compiled/edge-runtime/index.js:1:655888), <anonymous>:11393:14)
lobe-chat  |     at Object.onError (eval at requireWithFakeGlobalScope (/app/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected][email protected][email protected][email protected]/node_modules/next/dist/compiled/edge-runtime/index.js:1:655888), <anonymous>:12310:38)
lobe-chat  |     at _Request2.onError (eval at requireWithFakeGlobalScope (/app/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected][email protected][email protected][email protected]/node_modules/next/dist/compiled/edge-runtime/index.js:1:655888), <anonymous>:8942:31)
lobe-chat  |     at errorRequest (eval at requireWithFakeGlobalScope (/app/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected][email protected][email protected][email protected]/node_modules/next/dist/compiled/edge-runtime/index.js:1:655888), <anonymous>:11060:17)
lobe-chat  |     at TLSSocket.onSocketClose (eval at requireWithFakeGlobalScope (/app/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected][email protected][email protected][email protected]/node_modules/next/dist/compiled/edge-runtime/index.js:1:655888), <anonymous>:10477:9)
lobe-chat  |     at TLSSocket.emit (node:events:531:35)
lobe-chat  |     at node:net:339:12
lobe-chat  |     at TCP.done (node:_tls_wrap:648:7) {
lobe-chat  |   [cause]: SocketError: other side closed
lobe-chat  |       at TLSSocket.onSocketEnd (eval at requireWithFakeGlobalScope (/app/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected][email protected][email protected][email protected]/node_modules/next/dist/compiled/edge-runtime/index.js:1:655888), <anonymous>:10455:26)
lobe-chat  |       at TLSSocket.emit (node:events:531:35)
lobe-chat  |       at endReadableNT (node:internal/streams/readable:1696:12)
lobe-chat  |       at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
lobe-chat  |     code: 'UND_ERR_SOCKET',
lobe-chat  |     socket: {
lobe-chat  |       localAddress: '172.25.0.15',
lobe-chat  |       localPort: 52032,
lobe-chat  |       remoteAddress: '40.76.107.132',
lobe-chat  |       remotePort: 443,
lobe-chat  |       remoteFamily: 'IPv4',
lobe-chat  |       timeout: undefined,
lobe-chat  |       bytesWritten: 78856,
lobe-chat  |       bytesRead: 999
lobe-chat  |     }
lobe-chat  |   }
lobe-chat  | }

📷 复现步骤

No response

🚦 期望结果

No response

📝 补充信息

No response

@retaw106 retaw106 added the 🐛 Bug Something isn't working | 缺陷 label Nov 2, 2024
@lobehubbot
Copy link
Member

👀 @retaw106

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

@dosubot dosubot bot added tts TTS/STT 📱 Mobile Device Issue in mobile view | 移动设备 labels Nov 2, 2024
Copy link

dosubot bot commented Nov 2, 2024

@retaw106 你好!我是Dosu,一个可以帮助你解决bug,回答问题,并成为贡献者的机器人。我会在等待人类维护者的过程中帮助你。

I found a similar issue related to voice input not working under certain conditions. In a previous discussion, it was noted that using HTTP instead of HTTPS might cause issues with voice input due to browser restrictions. Switching to HTTPS could potentially resolve the problem [1].

Regarding the 'terminated' TypeError, this might occur if there is an attempt to access properties or methods on a null or undefined object. This could happen if the WebSocket provider or its associated objects are not properly initialized or have been destroyed. Ensure that the WebSocket connections are correctly set up and that any cleanup logic does not prematurely destroy necessary resources [2].

For further troubleshooting, you might want to check if there are any specific configurations or dependencies related to voice input that might not be compatible with Firefox or Android browsers, as this information wasn't directly available in the repository.

To continue talking to Dosu, mention @dosu.

@retaw106
Copy link
Author

retaw106 commented Nov 2, 2024

我使用的是https网址,反向代理由nginx proxy manager搭建,NPM中已打开Websockets support

@lobehubbot
Copy link
Member

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


I am using an https URL, the reverse proxy is built by nginx proxy manager, and Websockets support is turned on in NPM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Something isn't working | 缺陷 📱 Mobile Device Issue in mobile view | 移动设备 tts TTS/STT
Projects
Status: Roadmap - Chat 1.x
Development

No branches or pull requests

2 participants