cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

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? 

1 ACCEPTED SOLUTION

Accepted Solutions

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

1 REPLY 1

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.

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local communityโ€”sign up today to get started!

Sign Up Now