failed to connect to all addresses error #11964
-
|
Hello, I would like to develop a tool based on Google's Text-to-Speech. I have encountered some issues. The quickstart example compiles and works correctly, but when integrating it into my project, I encounter the following error: "Error in non-idempotent operation SynthesizeSpeech: failed to connect to all addresses; last error: UNKNOWN: ipv6:[2404:6800:4004:823::200a]:443: Network is unreachable." Can you please tell me the reason behind this? My development environment is Debian. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 12 replies
-
|
The error message suggests this is a network problem. Can you connect to the endpoint? Maybe try: gcloud info --run-diagnosticsOr (even simpler): curl -i https://speech.googleapis.com/That second command should return a 404 error, which at least indicates the server was contacted. If connectivity works: are you using some kind of HTTP proxy? If so, you may need to configure https://grpc.github.io/grpc/cpp/md_doc_environment_variables.html You may also want to test using the google cloud CLI, e.g.: https://cloud.google.com/speech-to-text/docs/transcribe-gcloud |
Beta Was this translation helpful? Give feedback.
-
|
Initially, I wanted to develop a Freeswitch mod using the Text-to-Speech API. I successfully compiled the Freeswitch mod, but encountered the following error when trying to load the mod. Later, I discovered that the Google Cloud API was compiled with OpenSSL 3.x (via vcpkg), while my Freeswitch was using OpenSSL 1.2. To resolve this, I recompiled the Google Cloud API using CMake and also recompiled my Freeswitch mod. However, I encountered the following error during the loading process. Later, I realized that the issue was due to my build tool (sh) not properly removing vcpkg. Once I removed -DCMAKE_TOOLCHAIN_FILE, there were no more issues. |
Beta Was this translation helpful? Give feedback.
Okay. I think the problem is using both OpenSSL 1.x and OpenSSL 3.x at the same time. The vcpkg-based build uses OpenSSL 3.x, FreeSWITCH uses OpenSSL 1.x, and when FreeSWITCH loads the module (I reckon this is some kind of
.sofile) nothing works like it should.Certainly, look at:
https://github.com/googleapis/google-cloud-cpp/blob/main/doc/packaging.md
There should be step by step instructions for Debi…