Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All,
I am able to connect to Qlik Sense Desktop Engine API using this below python script :
from websocket import create_connection
import json
ws = create_connection("ws://localhost:4848/app/")
data=json.dumps({
'jsonrpc': '2.0',
'id': 2,
'method': 'DoReload',
'handle': 1,
'params': ['C:\\Users\\sbhowmik\\Documents\\Qlik\\Sense\\Apps\\Test.qvf']
}
# sort_keys=True,
#indent=4,
#separators=(',', ': ')
)
print("Sending req...")
ws.send(data)
print("Sent")
print("Receiving...")
result = ws.recv()
print("Received '%s'" % result)
qclosed = ws.close()
print("Closed '%s'" % qclosed)
The message I get in return from engine is as below :
{"jsonrpc":"2.0","method":"OnConnected","params":{"qSessionState":"SESSION_CREATED"}}
>> Problem Statement : But, the app Test.qvf does not open up AND also, I do not get any QReturn message from the Engine API . I maybe doing something wrong here. Please help.
Hello,
Can anyone help me on this as this is quiet urgent.
Regards,
Sanchayan Bhowmik
Hi,
Continuously receiving this Invalid Params message when connecting with Desktop engine API, even though after successful connection with API. Please look innto this :
'{"jsonrpc":"2.0","method":"OnConnected","params":{"qSessionState":"SESSION_CREATED"}}'
'{"jsonrpc":"2.0","id":5,"error":{"code":-32602,"parameter":"Invalid handle","message":"Invalid Params"}}'
Regards,
Sanchayan Bhowmik