Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
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 connecting to 5 apps, so I have 5 sessions when I start my application.

3 Replies
Anonymous
Not applicable
Author

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?

jobsonkjoseph
Creator III
Creator III

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.