aalteirac / spotifySessionApp

Qlik Session App sample, based on Spotify information
4 stars 3 forks source link

Help with setup #1

Closed ludberg closed 7 years ago

ludberg commented 7 years ago

Hi

I watched your talk here at Qonnections and I wanted to try this since it was a very nice solution. I'm having some trouble getting this to work.

What I get is: "GET http://10.76.224.67/ano/resources/js/qlik.js net::ERR_CONNECTION_TIMED_OUT"

What I did was: 1) Edit the config.js and added my spotify key (no other changes!) 2) Created a new virtual proxy with

Run npm install and npm start.

When I go to localhost:3002 I get redirected to Spotify and then back with a token. Now I get the abovementioned error.

What did I do wrong?

I can't recognize the ip address 10.76.224.67 as the machine I'm on has 10.101..

aalteirac commented 7 years ago

Hi ludberg,

thanks for your interest, I need to update the readme, indeed there's an harcoded IP in the code: public/spotify-session-app.js, line 18: var config = { host: '10.76.224.67', prefix: '/ano/', port: 80, isSecure: false };

just change it to point you sense server.

Hope it helps,

ludberg commented 7 years ago

Hi

I changed to 'localhost' and now I get this error.

Can you point me in the right direction?

Best Anders

[image: Inline image 2]

Anders Uddenberg 070 29 41 012

On Thu, May 18, 2017 at 9:05 PM, Anthony Alteirac notifications@github.com wrote:

Hi ludberg,

thanks for your interest, I need to update the readme, indeed there's an harcoded IP in the code: public/spotify-session-app.js, line 18: var config = { host: '10.76.224.67', prefix: '/ano/', port: 80, isSecure: false };

just change it to point you sense server.

Hope it helps,

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/aalteirac/spotifySessionApp/issues/1#issuecomment-302511690, or mute the thread https://github.com/notifications/unsubscribe-auth/ADD0hvffhlGtk7lGsM9SCbPNo9QSTQMOks5r7JZogaJpZM4Nfos7 .

aalteirac commented 7 years ago

Cannot see the picture unfortunately, could you post it again or paste the stack as text ?

Many thanks

ludberg commented 7 years ago

Upon further investigation I get the following error.

Might it be something with my Virtual Proxy? Do I need to change the Default App ID, or Directory?

Hostname is set to localhost and I can use the Qlik Sense Enterprise server that's on http://localhost

ERROR on createSessionApp Error: Not connected at RPC.send (C:\Users\anders.uddenberg\Downloads\spotifySessionApp\nodemodu les\enigma.js\dist\enigma.js:2759:37) at Session.send (C:\Users\anders.uddenberg\Downloads\spotifySessionApp\node modules\enigma.js\dist\enigma.js:1501:32) at Object.fn [as getActiveDoc] (C:\Users\anders.uddenberg\Downloads\spotifyS essionApp\node_modules\enigma.js\dist\enigma.js:2467:32) at qix.global.createSessionApp.then (C:\Users\anders.uddenberg\Downloads\spo tifySessionApp\engine.js:166:25) at process._tickCallback (internal/process/next_tick.js:109:7) Error: Not connected at RPC.send (C:\Users\anders.uddenberg\Downloads\spotifySessionApp\nodemodu les\enigma.js\dist\enigma.js:2759:37) at Session.send (C:\Users\anders.uddenberg\Downloads\spotifySessionApp\node modules\enigma.js\dist\enigma.js:1501:32) at Object.fn [as getActiveDoc] (C:\Users\anders.uddenberg\Downloads\spotifyS essionApp\node_modules\enigma.js\dist\enigma.js:2467:32) at qix.global.createSessionApp.then (C:\Users\anders.uddenberg\Downloads\spo tifySessionApp\engine.js:166:25) at process._tickCallback (internal/process/next_tick.js:109:7)

Anders Uddenberg 070 29 41 012

On Fri, May 19, 2017 at 7:14 PM, Anthony Alteirac notifications@github.com wrote:

Cannot see the picture unfortunately, could you post it again or paste the stack as text ?

Many thanks

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/aalteirac/spotifySessionApp/issues/1#issuecomment-302760342, or mute the thread https://github.com/notifications/unsubscribe-auth/ADD0hmKDaK1xkqbHGXuOpnJNb6QJi6DHks5r7c4CgaJpZM4Nfos7 .

aalteirac commented 7 years ago

oki, sounds like the backend is not able to connect, is your proxy set to accept http ?

aalteirac commented 7 years ago

You can now test also on Qlik Sense Desktop, far easier to setup.

Let me know !

Thanks

ludberg commented 7 years ago

It almost worked with desktop, the object "qlik" is undefined in spotify-session-app.js. See error below

spotify-session-app.js:55 Uncaught TypeError: Cannot read property 'sessionAppFromApp' of undefined at Object.success (spotify-session-app.js:55) at j (jquery.min.js:2) at Object.fireWith [as resolveWith] (jquery.min.js:2) at x (jquery.min.js:4) at XMLHttpRequest.b (jquery.min.js:4) (anonymous) @ spotify-session-app.js:55

Anders Uddenberg 070 29 41 012

On Tue, May 23, 2017 at 10:06 AM, Anthony Alteirac <notifications@github.com

wrote:

You can now test also on Qlik Sense Desktop, far easier to setup.

Let me know !

Thanks

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/aalteirac/spotifySessionApp/issues/1#issuecomment-303321589, or mute the thread https://github.com/notifications/unsubscribe-auth/ADD0hoPHWRRgDcD1zKQAAPQloixaYS9qks5r8pN6gaJpZM4Nfos7 .

aalteirac commented 7 years ago

Thanks for feedback Anders ! Let's start from the beginning, what's your desktop version (must be SR3 min) ? Did you checkout the latest code ?

ludberg commented 7 years ago

Hi

I upgraded to latest (SR4) and it worked perfectly.

Thanks for you patience!

Best

Anders Uddenberg 070 29 41 012

On Wed, May 24, 2017 at 10:38 AM, Anthony Alteirac <notifications@github.com

wrote:

Thanks for feedback Anders ! Let's start from the beginning, what's your desktop version (must be SR3 min) ? Did you checkout the latest code ?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/aalteirac/spotifySessionApp/issues/1#issuecomment-303657460, or mute the thread https://github.com/notifications/unsubscribe-auth/ADD0hgMpoccbYUxbTRmmT9HKI7y4ZAhYks5r8-yRgaJpZM4Nfos7 .

aalteirac commented 7 years ago

Thanks Anders !