-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Connection failed (no connection to the remote host) WS_OPEN_ERROR_UNDERLYING_IO_OPEN_FAILED #1911
Comments
Connection failed (no connection to the remote host). Internal error: 1. Error details: Failed with error: WS_OPEN_ERROR_UNDERLYING_IO_OPEN_FAILED |
The client sdk used is 1.25.0 in Java language, running on Windows |
Thanks for adding the SDK log, the underlying error from it was: Adn 10054 translates to: So something between the client and the service reset the connection. Can you connect using curl to download the list of supported languages? Does the connection always fail? |
curl https://eastasia.stt.speech.microsoft.com/api/v1.0/languages/recognition It can be connected. |
Running on server, error 443, connection timeout |
Windows 11 上存在一个已知问题,该问题可能会影响某些类型的安全套接字层 (SSL) 和传输层安全性 (TLS) 连接。 这些连接可能会出现握手失败。 对于开发人员,受影响的连接可能会在单个输入缓冲区中发送多个帧,然后发送大小小于 5 个字节的部分帧。 如果连接失败,你的应用将收到“USP 错误”、“连接关闭”、“服务超时”或“SEC_E_ILLEGAL_MESSAGE”等错误。 |
But my computer is Win10. Do I need to update to 11? |
Just now I re executed the code and found that the speech recognition text is working. I didn't do anything. After restarting my computer, I ran it again and found that an error was reported again. Since then, I have never been successful again |
I am using the sample code here |
After testing, this is a network failure in China, and I can't connect to the eastasia server too (will connect by vpn). |
But the audio synthesis function can be successfully called, and adding subtitles for voice to text is the only problem. Is the service accessed by the two different |
yes, Connect to https://eastus.stt.speech.microsoft.com/api/v1.0/languages/recognition,Sometimes it's possible, But even if the curl successfully responds, there are still issues with speech recognition execution |
Turn on the vpn for test, or create a new Subscription-Key for other regions. |
Speech Synthesis and Speech Recognition use different endpoints. |
If it is due to network issues, audio synthesis is possible, but audio recognition failed. Although it is two endpoints, I still feel a bit strange |
And even though I switched to Japan using VPN, I still reported the same error. I don't understand what caused it. This is the log of my VPN switching to Japan |
My system is Win10, JDK 17, language Java, SDK is 1.25.0, and I have tried both 1.26.0 and 1.27.0, but the same problem, |
Thanks for the additional log, it's still the same error of a peer reset happening. Unfortunately, it's typically difficult to determine which component is resetting connections unless it's killing a lot of them, and there's usually a good number of devices between data centers. At this point the usual path is to take a WireShark trace, find the TCP RST packets that are coming back and compare their TTL numbers to a traceroute to the service and see if we can match up a device. |
Today, I encountered a situation where I successfully called speech recognition for the first time, but when I called it again after a minute, it failed and seemed very unstable. Since then, there have been more and more failures, and I have never called it again successfully.Captioning () is a function that I encapsulate, but it is actually internally provided by Microsoft |
I can tell you clearly that the server you are using is in Hong Kong and has been blocked. |
If 198.18.9.179 is the device resetting the connection it's a device in a private network address space. Perhaps a proxy between the client and the internet? Have you tried using a China region? |
I've just started with Text-to-Speech and the Express.js example works fine for me. But the Python example gives me the error:
This is on the exact same subscription_key and region as the JS demo, which is working fine. Environment is:
As you can see I am using EastUS region. I am in Australia. UPDATE, just created a speech service in AustraliaEast and got the exact same results. SDK Log attached UPDATE: I fixed this -- my WSL2 clock was out of sync with real time (and yeah this isn't fixed properly). |
We have solved this problem due to network proxies. Currently, there are issues with the Chinese network, and we have applied for a new secret key using Southeast Asia in the future |
@tianyi14 Hello there, I am currently facing this issue with the |
I had same problem when running 'speech sdk' through
|
Describe the bug
Using the speech recognition text function, this error will be reported starting from April 7th
This is the error log
logspeech.txt
The text was updated successfully, but these errors were encountered: