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

Failed to connect to Websocket. #3

Open
mqgw opened this issue Sep 22, 2024 · 0 comments
Open

Failed to connect to Websocket. #3

mqgw opened this issue Sep 22, 2024 · 0 comments

Comments

@mqgw
Copy link

mqgw commented Sep 22, 2024

After wakeword detected, the program cannot set up websocket. How to solve the issue?

Here Is the log information.
I (2184) Application: Audio feed task started, chunk size: 160
I (2184) Application: Audio detection task started, chunk size: 512
I (2274) FirmwareUpgrade: Current version: 0.2.0
I (2284) wifi:idx:1 (ifx:0, a0:36:bc:56:d6:a8), tid:0, ssn:1, winSize:64
W (2444) wifi:m f null

I (2584) esp-x509-crt-bundle: Certificate validated
I (3264) FirmwareUpgrade: No new version available
I (3264) FirmwareUpgrade: Running from factory partition, skipping
I (12274) main: Free heap size: 7192424 minimal internal: 2859
I (19834) Application: wakeword detected
I (19834) Application: Chat state: connecting
I (19844) Application: 开始初始化WebSocket客户端
W (19844) websocket_client: network_timeout_ms is not set, or it is less than or equal to zero, using default time out 10000 (milliseconds)
I (19854) Application: 设置WebSocket头部 - Authorization和Device-Id
I (19864) Application: WebSocket请求内容:
I (19864) Application: URL: wss://api.tenclass.net/xiaozhi/v1
I (19874) Application: Headers:
I (19884) Application: Authorization: Bearer test-token
I (19884) Application: Device-Id: XXXXXXXXXX
I (19894) Application: 尝试连接到WebSocket服务器: wss://api.tenclass.net/xiaozhi/v1
I (20184) esp-x509-crt-bundle: Certificate validated
I (20314) Application: Encode wake word data opus packets: 26 in 469 ms
E (20604) transport_ws: Sec-WebSocket-Accept not found
E (20604) websocket_client: esp_transport_connect() failed with -1,
transport_error=ESP_OK, tls_error_code=0, tls_flags=0, esp_ws_handshake_status_code=301, errno=119
E (20614) Application: Websocket error: 0
E (20624) Application: Failed to connect to websocket server

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant