问题描述
我正在尝试从其Python API访问redash,该python API是从https://pypi.org/project/redash-api-client/下载的
我的py3代码:
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'))
我从databricks笔记本中运行代码。
如何确认可以从数据块正确访问主机?
钥匙是否有问题?
谢谢
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)