Connection error when accessing dbutils secrets

pjv
New Contributor III

We have daily running pipelines that need to access dbutils secrets for API keys. However, the dbutils.secrets.get function within our python code we get the following error:

org.apache.http.conn.HttpHostConnectException: Connect to us-central1.gcp.databricks.com:443 [REDACTED] failed: Connection timed out (Connection timed out)

Anyone any idea how to avoid this error? 

pjv
New Contributor III

Hi @Retired_mod , thanks for all these suggestions. I have a retry logic implemented so that will cover it. Was just wondering if there was a cleaner fix. I will have a look at the network and workspace configuration and see if there is anything I can do there.

View solution in original post