Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
AG-gugelbisolutions
Creator II
Creator II

Session App Tutorial - Connection Lost

Hi there, I'm trying to follow the official tutorial Tutorial: Creating a session app , but I'm getting a Connection Lost error at some point after hitting the Create Session App button.

Mashup is hosted by Qlik Sense itself and I'm reaching it through a URL like https://localhost/extension/[...]

Any ideas?

Labels (2)
7 Replies
AG-gugelbisolutions
Creator II
Creator II
Author

No-one has ever experienced this issue?

AG-gugelbisolutions
Creator II
Creator II
Author

Let me reformulate. The problem (at least the first) seems to be finding enigma. Please note that I'm trying to run this tutorial as an extension.

I have installed enigma.js and ws packages with the following command, run with administrator privileges.

npm i -S enigma.js ws

 This creates the relevant folders under C:\Windows\system32.

However, even if I try to require enigma with

const enigma = require("enigma.js");

I get the following error

Uncaught Error: Module name "enigma.js" has not been loaded yet for context: _. Use require([])

The same happens if I use the absolute path.

If I instead use 

 

const enigma = require('enigma.js');

 

I get the this error

 

Uncaught Error: Module name "enigma.js" has not been loaded yet for context: _. Use require([])

 

 

How can enigma code be run on the browser?

 

hakana
Employee
Employee

From what I can see, the tutorial you are linking isn't using engima.js.
It's using the require( ["js/qlik"],... that will do the communication with engine

What's the goal here? Just learning?
You could try the tutorials at https://qlik.dev/tutorials/build-a-simple-mashup-using-capability-apis

AG-gugelbisolutions
Creator II
Creator II
Author

Yes, the tutorial does not use enigma, but it works only on Qlik Sense Desktop. If I try to run it on QSEoW a "Connection Lost" error pops up and my intention was to solve it making use of enigma.

At the moment the goal is to learn, but I will need a much more solid knowledge, especially of session apps, in three or four months.

I will try to follow the Capability APIs tutorial as well.

Thanks.

rzenere_avvale
Partner - Specialist II
Partner - Specialist II

Hey there @AG-gugelbisolutions,

Have you tried taking a look at these resources?

  • enigma.js overview on QSEfW's help page: enigma.js
  • complete example of how to create a session app using enigma.js: car-models  

 

I hope this helps,
Riccardo

AG-gugelbisolutions
Creator II
Creator II
Author

The "Connection Lost" problem stopped me as I was trying to follow all possible example to gain as much as experience possible.

At the moment I'm following this Capability API tutorial and is working fine. I feel like the right learning path starts from Capability/Root APIs and the enigma.

At the beginning I was pretty optimistic about enigma, but the only good result was a series of scripts to use as backend scripts; never been able to make it work on the browser.

Thanks

AG-gugelbisolutions
Creator II
Creator II
Author

Just a quick update: I'm working without enigma at the moment, but I'm stuck on rendering objects within a session app (see this other post).