[Feature Request] Make it easier to diagnose failures to connect to Temporal Cloud due to incorrect serverRootCACertificate
#1431
Labels
enhancement
New feature or request
What are you really trying to do?
I'm trying to connect to Temporal Cloud with this SDK client. But failed in my troubleshooting when the error message threw me in another direction.
Describe the bug
I'm trying to connect to a namespace in Temporal Cloud. The worker and the client is using the exact same TLS-configuration (i use the same function to generate the TLS config in my actual code).
The worker connects successfully to Temporal Cloud, but the client fails with the message
Failed to connect before the deadline
.It turns out that it was a misconfiguration on my part on the
serverRootCACertificate
, I had set a CA certificate that wasn't valid in this case.The error message through me off in the troubleshooting. I had expected the message to be something related to TLS validation or similar, not a failed connection before the deadline...
It would be great with a error message explaining the actual problem if that is possible.
Minimal Reproduction
Environment/Versions
Typescript SDK 1.9.3 and 1.10.1, NodeJS 22.0 and 22.2
The text was updated successfully, but these errors were encountered: