0

I am trying to access redash from its python API, which was downloaded from https://pypi.org/project/redash-api-client/

My py3 code:

from redashAPI import RedashAPIClient as RAC
API_KEY = 'xxxxxxxx' # (got from redash query page)
REDASH_HOST = 'https://redash.prod.MY_HOST.com/'
redash = RAC(API_KEY, REDASH_HOST)

res = redash.get('https://redash.prod.MY_HOST.com/queries') # error!

 ConnectionError: HTTPSConnectionPool(host='redash.prod.MY_HOST.com', port=443): 
 Max retries exceeded with url: //api/https://redash.prod.MY_HOST.com/queries 
 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at >: 
 Failed to establish a new connection: [Errno 110] Connection timed out'))

I run the code from databricks notebook.

How to confirm that the host can be accessed from databricks correctly ?

Is there something wrong with the key or else ?

thanks

user3448011
  • 935
  • 8
  • 19

0 Answers0