无法使用Tableau服务器客户端(TSC Python)连接到Tableau服务器

无法使用Tableau服务器客户端(TSC Python)连接到Tableau服务器,python,tableau-api,Python,Tableau Api,我的脚本(Iam未使用saml进行身份验证): 错误: Traceback (most recent call last): File "C:\Users\Admin\AppData\Local\Programs\Python\Python37\lib\site-packages\tableauserverclient\server\endpoint\endpoint.py", line 70, in _check_status raise ServerRespo

我的脚本(Iam未使用saml进行身份验证):

错误:

Traceback (most recent call last):
  File "C:\Users\Admin\AppData\Local\Programs\Python\Python37\lib\site-packages\tableauserverclient\server\endpoint\endpoint.py", line 70, in _check_status
    raise ServerResponseError.from_response(server_response.content, self.parent_srv.namespace)
  File "C:\Users\Admin\AppData\Local\Programs\Python\Python37\lib\site-packages\tableauserverclient\server\endpoint\exceptions.py", line 17, in from_response
    parsed_response = ET.fromstring(resp)
  File "C:\Users\Admin\AppData\Local\Programs\Python\Python37\lib\xml\etree\ElementTree.py", line 1315, in XML
    parser.feed(text)
xml.etree.ElementTree.ParseError: mismatched tag: line 31, column 79

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:/Users/Admin/PycharmProjects/T_SERVER_test/server_description.py", line 7, in <module>
    server.auth.sign_in(tableau_auth)
  File "C:\Users\Admin\AppData\Local\Programs\Python\Python37\lib\site-packages\tableauserverclient\server\endpoint\endpoint.py", line 127, in wrapper
    return func(self, *args, **kwargs)
  File "C:\Users\Admin\AppData\Local\Programs\Python\Python37\lib\site-packages\tableauserverclient\server\endpoint\auth_endpoint.py", line 32, in sign_in
    self._check_status(server_response)
  File "C:\Users\Admin\AppData\Local\Programs\Python\Python37\lib\site-packages\tableauserverclient\server\endpoint\endpoint.py", line 76, in _check_status
    raise NonXMLResponseError(server_response.content)
tableauserverclient.server.endpoint.exceptions.NonXMLResponseError: b'<!DOCTYPE html><html><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><title>Page Not Found</title><style>html {\n  height: 100%;\n  width: 100%;\n}\nbody {\n  position: absolute;\n  width: 100%;\n  margin: 0;\n  top: 20%;\n  font-family: Verdana, Geneva, sans-serif;\n  text-align: center;\n  color: #4E4E4E;\n}\n\nh1 {\n  font-size: 32px;\n  margin-bottom: 22px;\n}\n\nh1, h3 {\n  font-weight: normal;\n}\n\nh3 {\n  font-size: 19px;\n}\n\n#requestIdContainer {\n  font-size: 19px;\n  display: none;\n}</style><script src="/embeddedErrorPage.js?2020_2_150_ue2837ac2bm"></script></head></html><body><h1>The page you were looking for could not be found.</h1><h3>Check the URL for errors.</h3><p id="requestIdContainer"><span>Request ID</span>&nbsp;<span id="requestId"></span></p></body>'
回溯(最近一次呼叫最后一次):
文件“C:\Users\Admin\AppData\Local\Programs\Python37\lib\site packages\tableauserverclient\server\endpoint\endpoint.py”,第70行,处于检查状态
从\u response(server\u response.content、self.parent\u srv.namespace)引发ServerResponseError
文件“C:\Users\Admin\AppData\Local\Programs\Python37\lib\site packages\tableauserverclient\server\endpoint\exceptions.py”,第17行,在from\U响应中
解析的_响应=ET.fromstring(resp)
文件“C:\Users\Admin\AppData\Local\Programs\Python37\lib\xml\etree\ElementTree.py”,第1315行,xml格式
parser.feed(文本)
xml.etree.ElementTree.ParseError:不匹配的标记:第31行第79列
在处理上述异常期间,发生了另一个异常:
回溯(最近一次呼叫最后一次):
文件“C:/Users/Admin/PycharmProjects/T_SERVER_test/SERVER_description.py”,第7行,在
server.auth.sign\u in(tableau\u auth)
文件“C:\Users\Admin\AppData\Local\Programs\Python37\lib\site packages\tableauserverclient\server\endpoint\endpoint.py”,包装器中的第127行
返回函数(self、*args、**kwargs)
文件“C:\Users\Admin\AppData\Local\Programs\Python37\lib\site packages\tableauserverclient\server\endpoint\auth\u endpoint.py”,第32行,登录
自我检查状态(服务器响应)
文件“C:\Users\Admin\AppData\Local\Programs\Python37\lib\site packages\tableauserverclient\server\endpoint\endpoint.py”,第76行,处于检查状态
引发非XMLResponseError(server_response.content)
tableauserverclient.server.endpoint.exceptions.NonXMLResponseError:b'Page未找到HTML{\n高度:100%;\n宽度:100%;\n正文{\n位置:绝对;\n宽度:100%;\n边距:0;\n顶部:20%;\n字体系列:Verdana,日内瓦,无衬线;\n文本对齐:中心;\n颜色:#4e4e4e4e;\n}\n\n\nh1{\n字体大小:32px;\n边距底部:22px;\n}\n\nh1,h3{\n font-weight:normal;\n}\n\nh3{\n font-size:19px;\n}\n\n#requestIdContainer{\n font-size:19px;\n display:none;\n}找不到您要查找的页面。请检查URL是否有错误。

请求id

'
谢谢重播

现在已经实现,并且可以用作有此问题的用户的替代身份验证策略

有关github问题,请参见。

现已实施,并可作为有此问题的用户的替代身份验证策略


有关github问题,请归功于。

github问题指出,SAML身份验证发生此错误,因为它不支持tsc。不确定是否已解决。github存在一个问题,称此错误发生在SAML身份验证中,因为它不支持tsc。不知道是否已经解决了。
Traceback (most recent call last):
  File "C:\Users\Admin\AppData\Local\Programs\Python\Python37\lib\site-packages\tableauserverclient\server\endpoint\endpoint.py", line 70, in _check_status
    raise ServerResponseError.from_response(server_response.content, self.parent_srv.namespace)
  File "C:\Users\Admin\AppData\Local\Programs\Python\Python37\lib\site-packages\tableauserverclient\server\endpoint\exceptions.py", line 17, in from_response
    parsed_response = ET.fromstring(resp)
  File "C:\Users\Admin\AppData\Local\Programs\Python\Python37\lib\xml\etree\ElementTree.py", line 1315, in XML
    parser.feed(text)
xml.etree.ElementTree.ParseError: mismatched tag: line 31, column 79

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:/Users/Admin/PycharmProjects/T_SERVER_test/server_description.py", line 7, in <module>
    server.auth.sign_in(tableau_auth)
  File "C:\Users\Admin\AppData\Local\Programs\Python\Python37\lib\site-packages\tableauserverclient\server\endpoint\endpoint.py", line 127, in wrapper
    return func(self, *args, **kwargs)
  File "C:\Users\Admin\AppData\Local\Programs\Python\Python37\lib\site-packages\tableauserverclient\server\endpoint\auth_endpoint.py", line 32, in sign_in
    self._check_status(server_response)
  File "C:\Users\Admin\AppData\Local\Programs\Python\Python37\lib\site-packages\tableauserverclient\server\endpoint\endpoint.py", line 76, in _check_status
    raise NonXMLResponseError(server_response.content)
tableauserverclient.server.endpoint.exceptions.NonXMLResponseError: b'<!DOCTYPE html><html><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><title>Page Not Found</title><style>html {\n  height: 100%;\n  width: 100%;\n}\nbody {\n  position: absolute;\n  width: 100%;\n  margin: 0;\n  top: 20%;\n  font-family: Verdana, Geneva, sans-serif;\n  text-align: center;\n  color: #4E4E4E;\n}\n\nh1 {\n  font-size: 32px;\n  margin-bottom: 22px;\n}\n\nh1, h3 {\n  font-weight: normal;\n}\n\nh3 {\n  font-size: 19px;\n}\n\n#requestIdContainer {\n  font-size: 19px;\n  display: none;\n}</style><script src="/embeddedErrorPage.js?2020_2_150_ue2837ac2bm"></script></head></html><body><h1>The page you were looking for could not be found.</h1><h3>Check the URL for errors.</h3><p id="requestIdContainer"><span>Request ID</span>&nbsp;<span id="requestId"></span></p></body>'