Qlik Community

Qlik Sense Integration, Extensions, & APIs

Discussion board where members can learn more about Integration, Extensions and API’s for Qlik Sense.

Announcements
Qlik® Product Spotlight: Discover what’s possible. Get more from our products.
See for yourself. Register today.
Not applicable

Error 403 connecting to Desktop engine

I need to query information about a Qlik Sense app from a Java program, using the Engine API.

Though I will eventually use the enterprise edition, I'm trying to do my development on a Desktop version, to keep things simple. Turns out to be not so simple.   All attempts to connect to the engine on port 4848 get a consistent 403 error (Yes, the Desktop app is running.  When it is not, an expected connection failure occurs.)

Everything I could find by way of Google on this issue was not helpful.

The JSON structure to simply query the engine for a list of apps seemed simple enough in the API explorer.  My program creates the same JSON RPC request:

{
  "handle": -1,
  "method": "GetDocList",
  "params": [],
  "id": 6,
  "jsonrpc": "2.0"

}


which I send to the url http://localhost/4848/. (Since no app is involved in a request to get the list of apps, I didn't put anything in the path as the resource to be accessed.)


I get a solid 403 error.  Trying other variants, such as using 127.0.0.1:4848, gets the same error.


Since the api explorer works, it is not surprising that  the connection exists, according to netstat:


TCP    127.0.0.1:4848         <machinename>:65237       ESTABLISHED


and the firewall appears to be allowing qliksense.exe access.


1 Solution

Accepted Solutions
Not applicable

Re: Error 403 connecting to Desktop engine

Problem resolved itself with a new comm support library (tyrus).

2 Replies
konrad_mattheis
Not applicable

Re: Error 403 connecting to Desktop engine

Hi Gene,

this is working fine. You have to open a WebSocket and Connection to the port 4848 and send you requests.

For paid Help you can ask rbecher he has already written all that in JAVA.

bye

Konrad

Not applicable

Re: Error 403 connecting to Desktop engine

Problem resolved itself with a new comm support library (tyrus).