Connection failed (no connection to the remote host). Internal error: 1. Error details: 2461.
See original GitHub issueDescribe the bug
We are getting this error:
Connection failed (no connection to the remote host). Internal error: 1. Error details: 2461. Please check network connection, firewall setting, and the region name used to create speech factory.
when trying to use the SDK from inside a Ubuntu 18.04.3 LTS docker container (FROM ubuntu:latest). We installed the relevant libs (the documented ones and libgstreamer that I found is linked to one of the .so libs using ldd
):
apt-get install -y libssl1.0.0 libasound2 libgstreamer1.0-0
The same code works when executed directly on a Ubuntu 18.04.3 LTS virtual machine instead of in the docker image. So there seems to be something missing.
To Reproduce
- Try to execute an analysis using a .wav file from within the Ubuntu container
- The above error will be returned.
Expected behavior
The translated text returned from the API.
Version of the Cognitive Services Speech SDK
1.6.0
Platform, Operating System, and Programming Language
- OS: Ubuntu 18.04.3 LTS docker container
- Hardware - x64
- Programming language: Java
Additional context
Please tell me if there is more error information returned by the API that I can include.
Maybe someone with access to the source can tell me what exactly the number 2461 refers to, so I can investigate further.
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (2 by maintainers)
Top GitHub Comments
Do you still happen to have the list of new packages that the ubuntu-standard installation added? Just a shot in the dark here, but can you also try whether “ca-certificates” is the culprit?
Best, Mark
I had the same issue but on a fresh Debian Bullseye Docker container and your suggestion of installing the ca-certificates package fixed it. Thanks Mark!