Azure-Samples / cognitive-services-speech-sdk

Sample code for the Microsoft Cognitive Services Speech SDK
MIT License
2.69k stars 1.79k forks source link

Issue while connecting to speech SDK - web_socket.cpp:907 WS open operation failed with result=1(WS_OPEN_ERROR_UNDERLYING_IO_OPEN_FAILED) #2419

Open malyabanta opened 3 weeks ago

malyabanta commented 3 weeks ago

254445]: 67ms SPX_TRACE_ERROR: web_socket.cpp:907 WS open operation failed with result=1(WS_OPEN_ERROR_UNDERLYING_IO_OPEN_FAILED), code=-2[0xfffffffe], time=2024-06-13T14:10:53.7542501Z [254445]: 67ms SPX_TRACE_INFO: usp_connection.cpp:933 TS:15, TransportError: connection:0x70085960, code=5, string=Connection failed (no connection to the remote host). Internal error: 1. Error details: Failed with error: WS_OPEN_ERROR_UNDERLYING_IO_OPEN_FAILED wss://canadacentral.stt.speech.microsoft.com/speech/universal/v2 X-ConnectionId: <> [254445]: 67ms SPX_TRACE_ERROR: usp_reco_engine_adapter.cpp:2009 Response: On Error: Code:5, Message: Connection failed (no connection to the remote host). Internal error: 1. Error details: Failed with error: WS_OPEN_ERROR_UNDERLYING_IO_OPEN_FAILED wss://canadacentral.stt.speech.microsoft.com/speech/universal/v2 X-ConnectionId: <>. [254445]: 67ms SPX_DBG_TRACE_VERBOSE: usp_reco_engine_adapter.cpp:3033 TryChangeState; audioState/uspState: 2/1000 => 2/-1 USP-ERRORERROR [254445]: 67ms SPX_TRACE_ERROR: usp_reco_engine_adapter.cpp:2023 OnError: site->Error() ... error='Connection failed (no connection to the remote host). Internal error: 1. Error details: Failed with error: WS_OPEN_ERROR_UNDERLYING_IO_OPEN_FAILED wss://canadacentral.stt.speech.microsoft.com/speech/universal/v2 X-ConnectionId: <>'

BrianMouncer commented 3 weeks ago

@malyabanta can you please collect sdk logs files when this error happens, it sould give us the details we need to know why they connection failed.

malyabanta commented 3 weeks ago

@BrianMouncer - If i don't set proxy i get below error "_[961918]: 81336552ms SPX_TRACE_ERROR: AZ_LOG_ERROR: tlsioopenssl.c:1030 Error loading CRL from http://www.microsoft.com/pkiops/crl/Microsoft%20Azure%20RSA%20TLS%20Issuing%20CA%2008.crl" and fails with error " If i set proxy " i directly get below error "_[961918]: 81336553ms SPX_TRACE_ERROR: web_socket.cpp:907 WS open operation failed with result=1(WS_OPEN_ERROR_UNDERLYING_IO_OPEN_FAILED), code=2573[0x00000a0d], time=2024-06-15T18:23:02.2736630Z [961918]: 81336553ms SPX_TRACE_INFO: usp_connection.cpp:933 TS:31363, TransportError: connection:0x8400a220, code=5, string=Connection failed (no connection to the remote host). Internal error: 1. Error details: Failed with error: WS_OPEN_ERROR_UNDERLYING_IO_OPEN_FAILED wss://canadacentral.stt.speech.microsoft.com/speech/universal/v2 X-ConnectionId: 62a68bf24d244080991831ee6cad3127 [961918]: 81336553ms SPX_TRACE_ERROR: usp_reco_engine_adapter.cpp:2009 Response: On Error: Code:5, Message: Connection failed (no connection to the remote host). Internal error: 1. Error details: Failed with error: WS_OPEN_ERROR_UNDERLYING_IO_OPENFAILED wss://canadacentral.stt.speech.microsoft.com/speech/universal/v2 X-ConnectionId: 62a68bf24d244080991831ee6cad3127." - Attaching full log for reference. logs_15_new.txt

github-actions[bot] commented 2 days ago

This item has been open without activity for 19 days. Provide a comment on status and remove "update needed" label.