qlik-oss / enigma.js

JavaScript library for consuming Qlik's Associative Engine.
MIT License
210 stars 82 forks source link

OnMaxParallelSessionsExceeded #970

Open EmilioHerreraSoukup opened 1 year ago

EmilioHerreraSoukup commented 1 year ago

Description

Hi, I keep getting OnMaxParallelSessionsExceeded even thought Im closing the session via session.close();. I have read various posts and cant really find something that works, I saw an ambiguous answer using "headers", but cant make it work either. Please any help is appreciated

Environment

Library
[x] Node.js
[ ] Browser
Operating system
[ ] Windows
[ ] OSX
[ ] Linux
Qlik Sense
[ ] Desktop
[x] Enterprise

Versions

aihazm commented 1 year ago

Hi @EmilioHerreraSoukup, (apologies for the late reply),

This should have worked (closing the session) -- but since the call is async your perhaps may want to wait for the session to close before opening a new one ex: session.close().then(() => {./* code for opening the new session */ });

I saw an ambiguous answer using "headers"

could you share?

I also found a good article about session here