Azure-Samples / cognitive-services-speech-sdk

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

Connection failed (no connection to the remote host). Internal error: 1. Error details: Code: 2543 #1110

Closed Ablesius closed 3 years ago

Ablesius commented 3 years ago

Describe the bug I have followed the code example for transcribing an audio file, and I always get this error:

Connection failed (no connection to the remote host). Internal error: 1. Error details: Code: 2543. SessionId: 2caaa438233949fbb5ad24dea9b47a6c

To Reproduce Steps to reproduce the behavior:

  1. Create a speech_config.yml containing this:
--- # Azure config
subscription: "add your key from azure here" # key 1 from keys
region: "northeurope"
speech_recognition_language: "de-DE"
  1. Run the code from here: https://paste.xinu.at/H6tO/

Expected behavior I expected this output:

done with recognising. results:
Radio an    # German for "radio on"

Version of the Cognitive Services Speech SDK 1.17.0

Platform, Operating System, and Programming Language

dargilco commented 3 years ago

@Ablesius thanks for opening this issue. Can you please provide full Speech SDK Log, as per the instructions here? https://docs.microsoft.com/en-us/azure/cognitive-services/speech-service/how-to-use-logging Thanks, Darren

Ablesius commented 3 years ago

Hi Darren,

here you go: speech-sdk-log.txt

Bob-Thomas commented 3 years ago

Currently, undergoing the same issue.

I noticed this pattern "[507337]: 312ms SPX_TRACE_ERROR: AZ_LOG_ERROR: tlsio_openssl.c:691 error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed"

My run situation is a bit special though since we are running with the golang SDK inside a docker from "SCRATCH" container

But def sounds like some certs are missing in my machine so maybe it is also the same issue you are having

dargilco commented 3 years ago

@Bob-Thomas Regarding your issue, please open a new GitHub issue in the Speech SDK GO repo . We will try to help you there. Please provide full Speech SDK log. This page may be relevant to your issue, but I'm not sure yet without a full log.

dargilco commented 3 years ago

@Ablesius thank you for the log. Please have a look at the "Configure Open SSL for Linux" page and let me know if it helped. Thanks, Darren

Bob-Thomas commented 3 years ago

@Bob-Thomas Regarding your issue, please open a new GitHub issue in the Speech SDK GO repo . We will try to help you there. Please provide full Speech SDK log. This page may be relevant to your issue, but I'm not sure yet without a full log.

Thanks for the information, but I discovered soon after that the docker container from "SCRATCH" did not contain the openssl/ssl libraries.

After copying them over from my build stage it works like a charm

Ablesius commented 3 years ago

@dargilco yes, it works, thank you! Funny, because I tried that before and then it didn't work. Must have been a glitch :) Cheers!

dargilco commented 3 years ago

@Ablesius, glad to hear that!