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?