Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
As per engima's documentation, I create the sesion via:
const session = enigma.create({
schema,
url: <some url>,
createSocket: url => Websocket(url, {<authorization header>})
})
I was able to connect to qlik engine, open a document, etc.
I store this session in some variable and inside one function I close it:
session.close().then(() => console.log('Session closed properly'));
Then, after a few seconds, I tried to run my application again. However, this time, I cannot create a connection, I'm getting the error:
{"jsonrpc":"2.0","method":"OnLicenseAccessDenied"...
So I need to wait for 5 minutes before I can run again my application.
Could you advise what is happening? I really thought closing the session will allow me to create another session. By the way, I am connecting to 5 apps, so I have 5 sessions when I start my application.
Hi,
As per Qlik below is the explanation;
Hi Jobson,
I am aware of that link. However, I don't really understand it. In my testing, after 5 minutes has passed, I can again re-establish the connection. This OnLicenseAccessDenied always appear whenever I create a session for an app, immediately close my server, then create the session again. That's why I added the "session.close()" inside one function before I close my server, hoping that I don't run on this error. But still it shows. Am I closing the session the proper way?
Hi Ben,
I would suggest raising a ticket with qlik team itself. This could probably be a bug.
As you say it is connecting after certain amount of time.