对qlik的Python web套接字请求



我正在尝试连接到一个应用程序,以从Qlik引擎API检索详细信息。我能够连接到web套接字并使用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资源管理器传递相同的输入时,我能够检索数据,即连接到应用程序。这可能是什么原因,我使用的是pythonwebsocket

在应用程序GetDocList中,我们得到的是DocId而不是应用程序id,因此在请求OpenDoc方法时,我们需要提供doc_id而不是app_id

最新更新