Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Cannot create session after closing it

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 connnecting to 5 apps, so I have 5 sessions when I start my application.

0 Replies