[英]Error received when using an API GET request, with JSON and Python
[英]Received error when connect Tableau using Python
我正在使用 tableau_api_lib 訪問 Tableau 視圖,但無法連接。 我的代碼:
from tableau_api_lib import TableauServerConnection
from tableau_api_lib.utils import querying
tableau_server_config = {
'my_env': {
'server': 'https://tableauserver.com/',
'api_version': '3.8',
'username': 'xxx',
'password': 'xxx',
'site_name': 'xxx',
'site_url': 'https://tableauserver.com/#/site/xxx/'
}
}
conn = TableauServerConnection(config_json=tableau_server_config, env='my_env')
conn.sign_in()
這是錯誤:
requests.exceptions.SSLError: HTTPSConnectionPool(host='https://tableauserver.com/', port=443): Max retries exceeded with url: / (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1108)')))
它似乎與SSL有關,有人可以幫忙嗎?
如上所述這里和錯誤信息表明,這個錯誤是由於證書驗證失敗由於自簽名的證書。
嘗試使用 HTTP 而不是 HTTPS
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.