Python 对 qlik 的网络套接字请求
Python web socket request to qlik
我正在尝试连接到应用程序以从 Qlik Engine API 检索详细信息。我能够连接到网络套接字并使用 GetDocList 检索所有应用程序。
现在我尝试连接到单个应用程序时遇到 Could not find app
错误。
输入
inpt={
"method": "OpenDoc",
"handle": -1,
"params": [
"5-app-id-7b4646"
"UserDirectory=USERDIR; UserId=myuserid"
],
"jsonrpc": "2.0",
"id":2
}
输出
{"jsonrpc":"2.0","id":2,"error":{"code":1003,"parameter":"Could not find app","message":"App not found"}}
但是当我从引擎 API 浏览器传递相同的输入时,我能够检索数据,即连接到应用程序。这可能是什么原因,我正在使用 python websocket
.
在应用程序 GetDocList 中我们获取的是 DocIds 而不是应用程序 ID,因此在请求 OpenDoc 方法时我们需要提供 doc_id 而不是 app_id
我正在尝试连接到应用程序以从 Qlik Engine API 检索详细信息。我能够连接到网络套接字并使用 GetDocList 检索所有应用程序。
现在我尝试连接到单个应用程序时遇到 Could not find app
错误。
输入
inpt={
"method": "OpenDoc",
"handle": -1,
"params": [
"5-app-id-7b4646"
"UserDirectory=USERDIR; UserId=myuserid"
],
"jsonrpc": "2.0",
"id":2
}
输出
{"jsonrpc":"2.0","id":2,"error":{"code":1003,"parameter":"Could not find app","message":"App not found"}}
但是当我从引擎 API 浏览器传递相同的输入时,我能够检索数据,即连接到应用程序。这可能是什么原因,我正在使用 python websocket
.
在应用程序 GetDocList 中我们获取的是 DocIds 而不是应用程序 ID,因此在请求 OpenDoc 方法时我们需要提供 doc_id 而不是 app_id