2016-12-01 23 views
0

私はqlikデスクトップを使い始めており、Visual Studioプラグインを介してデスクトップに接続しています。 ... VSでVisual StudioプラグインのQlikでwebsocketエラーが発生し、define()エラーが発生する

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 
}); 

を私は、Visual Studioに2枚を追加したが、私はlocalhostにデバッグするとき、私は.jsファイルにエラー

を得る:

<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()

+1

あなたはチュートリアルを次していますか?私の推測では、あなたがopenApp()で持っているidはセンスサーバからのQS appIDです。あなたはサーバーを稼働させているのですか?クライアントを使用する場合は、IDの代わりにアプリ名を入力する必要があります。 – mickeger

+0

はい、私はチュートリアルに従っていました(ただし、atmのデスクトップ用)、正しいappIDとそれ以上のWebSocketエラーは見つかりませんでした。ありがとうございました。今他のエラーに笑 – Rainhider

答えて

関連する問題