esp-protocols icon indicating copy to clipboard operation
esp-protocols copied to clipboard

关于使用此组件连接火山大模型出现自动断开的问题。 (IDFGH-14226)

Open PoohWoah opened this issue 1 year ago • 2 comments

Answers checklist.

  • [X] I have read the documentation for esp-protocols components and the issue is not addressed there.
  • [X] I have updated my esp-protocols branch (master or release) to the latest version and checked that the issue is present there.
  • [X] I have searched the issue tracker for a similar issue and not found a similar issue.

What component are you using? If you choose Other, provide details in More Information.

esp_websocket_client

component version

1.3.0

IDF version.

5.3.1

More Information.

目前我在使用esp32idf库的ws组件与大模型服务器进行一个连接,用来识别我的流式语音,目前出现连接后自动就会断开 W (9150) transport_ws: esp_transport_ws_poll_connection_closed: unexpected data readable on socket=54 W (9151) websocket_client: Connection terminated while waiting for clean TCP close

这是报错,因为我用postman是可以正常持续连接,所以我的url和帧头是没有问题的,目前我怀疑是esp的ws库连接服务器时发送了什么消息给服务器从而被断开了?

PoohWoah avatar Dec 13 '24 02:12 PoohWoah

Hi @PoohWoah

This message

W (9150) transport_ws: esp_transport_ws_poll_connection_closed: unexpected data readable on socket=54
W (9151) websocket_client: Connection terminated while waiting for clean TCP close

appears in the log if close handshake failed to complete, but it also appears after the closure was started. I cannot tell if the closure was initiated by the client or the server. could you please share debug logs from this event? (and ideally also a wireshark capture, so we know exactly who initiated the close and why)

david-cermak avatar Dec 18 '24 18:12 david-cermak