Hi,
Im moving my code to Databricks notebook and facing below error. Could you please help. It is working fine in other interfaces like local desktop applications.
MaxRetryError: HTTPSConnectionPool(host=‘api.upstox.com’, port=443): Max retries exceeded with url: /v2/login/authorization/token (Caused by NewConnectionError(‘<urllib3.connection.HTTPSConnection object at 0x7f3a07712790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution’))
File /databricks/python/lib/python3.11/site-packages/urllib3/connection.py:174, in HTTPConnection._new_conn(self)
173 try:
→ 174 conn = connection.create_connection(
175 (self._dns_host, self.port), self.timeout, **extra_kw
176 )
178 except SocketTimeout:
File /databricks/python/lib/python3.11/site-packages/urllib3/util/retry.py:592, in Retry.increment(self, method, url, response, error, _pool, _stacktrace)
581 new_retry = self.new(
582 total=total,
583 connect=connect,
(…)
588 history=history,
589 )
591 if new_retry.is_exhausted():
→ 592 raise MaxRetryError(_pool, url, error or ResponseError(cause))
594 log.debug(“Incremented Retry for (url=‘%s’): %r”, url, new_retry)
596 return new_retry