Skip to content
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

ConnectionFailure with Speech Synthesis #291

Closed
brandom-msft opened this issue Dec 11, 2020 · 7 comments
Closed

ConnectionFailure with Speech Synthesis #291

brandom-msft opened this issue Dec 11, 2020 · 7 comments
Assignees
Labels
question Further information is requested

Comments

@brandom-msft
Copy link
Member

hi,
my Speech SDK version is 1.13.1
I get this error:
SpeechSynthesisResult {
privResultId: '13F4195BBBC34EB0A4A73670E2F41EAA',
privReason: 1,
privAudioData: undefined,
privErrorDetails: 'Unable to contact server. StatusCode: 1006, undefined Reason: Failed to obtain OCSP response: 504',
privProperties: PropertyCollection {
privKeys: [ 'CancellationErrorCode' ],
privValues: [ 'ConnectionFailure' ]
}
}

Originally posted by @Cincan in #157 (comment)

@brandom-msft
Copy link
Member Author

brandom-msft commented Dec 11, 2020

@Cincan can you provide more information about your setup/environment?

Also any information you can share about how this manifests. Is this issue intermittent or does it fail 100%?

@brandom-msft brandom-msft added the question Further information is requested label Dec 11, 2020
@Cincan
Copy link

Cincan commented Jan 14, 2021

many time it works well, and this issue is intermittent happens.

@AdamGustavsson
Copy link

AdamGustavsson commented Feb 27, 2021

This issue occured for me on the 27 Feb 2021 at 23.00 CET. I used the westeurope region. the issue was present for 5-10 minutes. I call the service from AWS lambda (eu-west) using node 10.
I use version 1.15.1 of the SDK

@AdamGustavsson
Copy link

The caching of the OCSP response does not work in a serverless context as neither the in memory cache nor the disk cache will share any cached items between calls. At least not with a cold start.
A feature request would be let the developer provide a cache function to be used. For AWS Lambda Elasticache, S3 or DynamoDb could be used instead.

@lowki
Copy link

lowki commented Apr 12, 2021

Hello there.
I've just bumped into the exact same error in a similar context (Lambda in a node 12 runtime)
Our service was running flawlessly for several months now.

@chschrae
Copy link
Member

Thanks for your continued input!

We have added some connection retry logic to make the connections more robust and mitigate this issue. The changes will be released in 1.17

@glharper
Copy link
Member

Closing this as the reconnection logic has been added.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

8 participants
@lowki @AdamGustavsson @rhurey @Cincan @chschrae @brandom-msft @glharper and others