Visual Studio 插件中的 Qlik 给出了 websocket 错误和 define() 错误
Qlik in Visual Studio plugin gives websocket error and define() error
我正在开始使用 qlik 桌面,我已经通过 Visual Studio 插件连接到桌面。我已将 2 张添加到 visual studio,但是当我调试到本地主机时,出现错误
在 .js 文件中...
var config = {
host: window.location.hostname,
prefix: '/',
port: window.location.port,
isSecure: window.location.protocol === "https:"
};
require.config( {
baseUrl: (config.isSecure ? "https://" : "http://") + config.host + (config.port ? ":" + config.port : "") + config.prefix + "resources"
});
require(["js/qlik"], function(qlik) {
// open the app
var app = qlik.openApp('c31e2aba-3b46-4b13-8b87-c5c2514dea1d', config);
//someone please tell me what this id is and where it comes from
because I c&p'd off of the tutorials and idk what goes here
});
对比中:
<asp:Content ID="Content2" ContentPlaceHolderID="cphMain" runat="server">
<div class="qlik-embed" data-qlik-appid="\apfs01\users\rbeets\Documents\Qlik\Sense\Apps\app1.qvf" data-qlik-objid="ZCJjkN></div>
<div class="qlik-embed" data-qlik-appid="\apfs01\users\rbeets\Documents\Qlik\Sense\Apps\app2.qvf" data-qlik-objid="JRcLVC"></div>
</asp:Content>
以及错误 1 和 2:
Websocket connection to 'ws://localhost......aspx' failed. Error during Websocket handshake. Unexpected response code: 404
Uncaught Error: Mismatched anonymous define() module ...from require.js:6
1 View Tags : localhostContent tagged with localhost, visual studio pluginContent tagged with visual studio plugin, websocketContent tagged with websocket, mismatched anonymous define()Content tagged with mismatched anonymous define()
我在下面的 link 找到了答案,它给出了通过服务器或桌面(本地主机)连接查找 appId 的说明....
我正在开始使用 qlik 桌面,我已经通过 Visual Studio 插件连接到桌面。我已将 2 张添加到 visual studio,但是当我调试到本地主机时,出现错误
在 .js 文件中...
var config = {
host: window.location.hostname,
prefix: '/',
port: window.location.port,
isSecure: window.location.protocol === "https:"
};
require.config( {
baseUrl: (config.isSecure ? "https://" : "http://") + config.host + (config.port ? ":" + config.port : "") + config.prefix + "resources"
});
require(["js/qlik"], function(qlik) {
// open the app
var app = qlik.openApp('c31e2aba-3b46-4b13-8b87-c5c2514dea1d', config);
//someone please tell me what this id is and where it comes from
because I c&p'd off of the tutorials and idk what goes here
});
对比中:
<asp:Content ID="Content2" ContentPlaceHolderID="cphMain" runat="server">
<div class="qlik-embed" data-qlik-appid="\apfs01\users\rbeets\Documents\Qlik\Sense\Apps\app1.qvf" data-qlik-objid="ZCJjkN></div>
<div class="qlik-embed" data-qlik-appid="\apfs01\users\rbeets\Documents\Qlik\Sense\Apps\app2.qvf" data-qlik-objid="JRcLVC"></div>
</asp:Content>
以及错误 1 和 2:
Websocket connection to 'ws://localhost......aspx' failed. Error during Websocket handshake. Unexpected response code: 404
Uncaught Error: Mismatched anonymous define() module ...from require.js:6 1 View Tags : localhostContent tagged with localhost, visual studio pluginContent tagged with visual studio plugin, websocketContent tagged with websocket, mismatched anonymous define()Content tagged with mismatched anonymous define()
我在下面的 link 找到了答案,它给出了通过服务器或桌面(本地主机)连接查找 appId 的说明....