Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Qliksense mashup (Rest Connection Failed Error)

Hi Everyone,

I am working on Qliksense 3.2 version and I am trying to create a mash up on Dev Hub . I actually wrote some HTML codes and embedded 4 objects into the page. While I dragged the objects into the page, I could see them, but when I'm trying to view it. It gives me an error for (Rest Connection Failed). Below is a screenshot for the same.

6 Replies
ErikWetterberg

Hi,

This error probably means that QIX Engine cannot communicate with the repository. Do you get this all the time or just sometimes? Check if there is any more errors in the browser console. Also verify the connection parameters and the appid.

Hope this helps

Erik Wetterberg

Not applicable
Author

Hi Erik,

Thanks for replying.

I have never done this before . I tried doing it for the first time and getting this error everytime now. Now I am not able to see the Qliksense object on the preview section also. I have verified the app id. Can you please explain tell me what connection parameters you are talking about?

Thanks,

Akash

ErikWetterberg

Hi Akash,

There is usually a section like this in the mashup:

var prefix = window.location.pathname.substr(0, window.location.pathname.toLowerCase().lastIndexOf("/extensions") + 1);


var config = {

    host: window.location.hostname,

    prefix: prefix,

    port: window.location.port,

    isSecure: window.location.protocol === "https:",

    openWithoutData: true

};

The config object should then be used in the openApp call:

app = qlik.openApp(appid, config);

Hope this helps

Erik Wetterberg

Not applicable
Author

Hi Erik,

Thanks for your reply, Everything I have set up well. But sometimes now It doesn't give me error while sometime it shows me rest connection failed error.

Thanks,

Akash

gautik92
Specialist III
Specialist III

I am also getting the same error

monaali602
Partner - Contributor III
Partner - Contributor III

hi,

did you get solution for this issue