8 Replies Latest reply: Oct 17, 2017 9:28 PM by praveena mundolimoole RSS

    Use QlikSense API on a machine which is not QlikSense server

    oshrat shabtai

      Hi all,

       

      I'm building a web application and I'm trying to use QlikSense API which installed on a different machine.

       

      The "require.js" file is on a remote server (QlikSense server)

       

      My code is:

       

      var config = {

          host: "[qlikSenseserverIP]",

          prefix: "/",

          port: 443,

          isSecure: true

      };

      1. require.config({

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

      });

       

      require(["js/qlik"], function (qlik) {

                qlik.setOnError(function (error) {

      $('#popupText').append(error.message + "<br>");

      $('#popup').fadeIn(1000);

                });

                $("#closePopup").click(function () {

      $('#popup').hide();

                });

                var app = qlik.openApp('[appID]', config);

      });

       

      I get this error after qlik.openApp('[appID]', config):

       

      "WebSocket connection to 'ws://[qlikSenseserverIP]:443/app/[appID]?reloadUri=http%3A%2F%2Flocalhost%3A2000%2F[myDefaultPage]r%2FReports%2F%3FmenuType%3D1%26menuDes%3DBalance%2520Sheet' failed: Error during WebSocket handshake: net::ERR_CONNECTION_RESET".

       

      What may be the cause?