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: 
Not applicable

Qlik Sense - External Web Server Websocket Error

Hi all,

I have recently set-up an external web server using Laragon and am having some difficulties in setting up the connection to Qlik Sense.

It is currently throwing up the following error message:

2015-10-01 15_45_56-GIADAFLUX - Remote Desktop Connection.png

This is the config code I have in the JS file.

var config = {

  host: "myhostname",

  prefix: "/",

  port: 443,

  isSecure: true,

  rejectUnauthorized: false

};

Would appreciate any assistance in resolving this issue!

Cheers,

Joel

13 Replies
Not applicable
Author

Which version of Qlik Sense are you using?

After our team upgraded to the 2.1.1.0 we saw behavior differences in the way our JS config object need to be configured.

-Michael

Not applicable
Author

Hi Michael,

I just upgraded to Qlik Sense 2.1.1 and the connection has started working.  However, my extension objects are failing to render which seems to have been an issue since 1.0 (Mashup API context).

Have you had any experience in using extensions on an external web server? 

FYI - the particular extension I am talking about is the KPI tile on Qlik Branch created by Stefan Walther.

Cheers,

Joel

Alexander_Thor
Employee
Employee

Hey,

Ye, we run several extensions through the Capabilities API on external hosts.

What errors are you getting in the console?

I'm guessing there is at least a 404 on the CSS file and require js has tried to append a .js extension to the file name.

Sent from my Windows Phone

Not applicable
Author

Hi all again,

Just noted from my errors above that .js seems to be added to the extension files.  Is there anyway to stop this from happening?

I have looked at this thread Qlik sense extension in mashup on external server but am not sure on how to resolve.

Would appreciate any assistance!

Cheers,

Joel

Alexander_Thor
Employee
Employee

Yes, the requirejs text plugin will fail cross domain.
Try adding this to your mashup as it will force the text plugin to fetch resources without a <script> tag

requirejs.config({

  config: {

       text: {

            useXhr: function (url, protocol, hostname, port) {

              return true;

            }

       }

  }

});

Not applicable
Author

Hello Joel,

My company is exploring an embedded solution--using Qlik within our product.

I saw in your thread:

https://community.qlik.com/thread/184901

That you also had a font issue that you were able to overcome.  Would you please chime into this thread below.  I've tried multiple workaround without success, so perhaps I've missed a step.

https://community.qlik.com/message/883917

Did you do Workaround #3?

thank you!

Michael

Not applicable
Author

Hi Alexander,

I have incorporated your code like this:

require.config( {

    baseUrl: ( config.isSecure ? "https://" : "http://" ) + config.host + (config.port ? ":" + config.port: "") + config.prefix + "resources",

    config: {

  text: {

        useXhr: function (url, protocol, hostname, port) { 

              return true;

        }

    }

    }

});

However, I am getting a bunch of Access Control Allow Origin header errors.  As per your advice on this thread Re: Sense mashup: Font fail in IE‌ I have added "Access-Control-Allow-Origin: *" to the QMC proxy settings.Capture.PNG

Cheers,

Joel

Not applicable
Author

Having a closer look at the network tab in Chrome Developer I can see that the response header for Access-Control-Allow-Origin is not * but rather the host name of my Qlik Server.

Capture.PNG

However, as per my previous post, I have already altered the proxy settings in Qlik QMC - is there some step that I am missing here?

Capture.PNG

Thanks in advance!

Cheers,

Joel

Not applicable
Author

Hi Joel,


I have the same issue as yours. How did you resolved it? Thanks in advance!