qlik-demo-team / qdt-vue-template

A simple Vue.js template that uses Qdt-components
10 stars 4 forks source link

'Please specify a qConfig global variable' error #2

Closed miranda-elliott closed 5 years ago

miranda-elliott commented 5 years ago

When I edit this template to connect to my own app and embed an object, in place of the chart it shows the text error: Please specify a qConfig global variable. All I changed was the host, prefix, and app id in QdtComponent.vue and the object id in EmbedObject.vue. There aren't any errors in the console. I've attached a screenshot. What does this mean and how can it be resolved?

Screenshot

yianni-ververis commented 5 years ago

Hello Miranda,

Make sure your prefix is your virtual proxy, if its the default it should be empty like prefix:"", also make sure you are initiating the class only once.

Can you send me the QdtComponent.vue? https://github.com/qlik-demo-team/qdt-vue-template/blob/master/src/components/QdtComponent.vue

miranda-elliott commented 5 years ago

The prefix is my virtual proxy (named test). I'm only initiating the class in QdtComponent,vue.

Here's that file: QdtComponent.vue

Thanks for your help!

yianni-ververis commented 5 years ago

I would try the prefix without slashes

Sent from my iPhone


From: Miranda Elliott notifications@github.com Sent: Wednesday, August 22, 2018 9:06:38 AM To: qlik-demo-team/qdt-vue-template Cc: Yianni Ververis; Comment Subject: Re: [qlik-demo-team/qdt-vue-template] 'Please specify a qConfig global variable' error (#2)

The prefix is my virtual proxy (named test). I'm only initiating the class in QdtComponent,vue.

Here's that file: QdtComponent.vuehttps://github.com/qlik-demo-team/qdt-vue-template/files/2310393/QdtComponent.vue.txt

Thanks for your help!

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/qlik-demo-team/qdt-vue-template/issues/2#issuecomment-415024946, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AMBqL1Xru7wHZ5MxZb555ZZLqTA1U794ks5uTVdegaJpZM4WGj9c.

yianni-ververis commented 5 years ago

I would also make sure that your localhost with your port is whitelisted in the virtual proxy

Sent from my iPhone


From: Yianni Ververis Sent: Wednesday, August 22, 2018 9:36:11 AM To: qlik-demo-team/qdt-vue-template; qlik-demo-team/qdt-vue-template Cc: Comment Subject: Re: [qlik-demo-team/qdt-vue-template] 'Please specify a qConfig global variable' error (#2)

I would try the prefix without slashes

Sent from my iPhone


From: Miranda Elliott notifications@github.com Sent: Wednesday, August 22, 2018 9:06:38 AM To: qlik-demo-team/qdt-vue-template Cc: Yianni Ververis; Comment Subject: Re: [qlik-demo-team/qdt-vue-template] 'Please specify a qConfig global variable' error (#2)

The prefix is my virtual proxy (named test). I'm only initiating the class in QdtComponent,vue.

Here's that file: QdtComponent.vuehttps://github.com/qlik-demo-team/qdt-vue-template/files/2310393/QdtComponent.vue.txt

Thanks for your help!

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/qlik-demo-team/qdt-vue-template/issues/2#issuecomment-415024946, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AMBqL1Xru7wHZ5MxZb555ZZLqTA1U794ks5uTVdegaJpZM4WGj9c.

miranda-elliott commented 5 years ago

I changed the prefix to "test" (no slashes) in QdtComponent.vue and "localhost" to "http://localhost:8080" in the virtual proxy whitelist. I'm no longer having the same error, it seems like it's actually attempting to connect now. However, it's failing to connect and showing an error modal I've attached a screenshot of.

qlik sense error

yianni-ververis commented 5 years ago

Do you have tokens? Does anon have access to the stream where the app is ?

Sent from my iPhone


From: Miranda Elliott notifications@github.com Sent: Wednesday, August 22, 2018 10:16:05 AM To: qlik-demo-team/qdt-vue-template Cc: Yianni Ververis; Comment Subject: Re: [qlik-demo-team/qdt-vue-template] 'Please specify a qConfig global variable' error (#2)

I changed the prefix to "test" (no slashes) in QdtComponent.vue and "localhost" to "http://localhost:8080" in the virtual proxy whitelist. I'm no longer having the same error, it seems like it's actually attempting to connect now. However, it's failing to connect and showing an error modal I've attached a screenshot of.

[qlik sense error]https://user-images.githubusercontent.com/8364014/44468886-3f747480-a5f4-11e8-9636-281ce35f530c.png

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/qlik-demo-team/qdt-vue-template/issues/2#issuecomment-415047198, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AMBqLwzQuBuOCGN3pdxgDpLer-O-D3Jjks5uTWelgaJpZM4WGj9c.

miranda-elliott commented 5 years ago

I've just been logging into the virtual proxy in a separate tab to test being able to connect, like they do in this tutorial. The user I'm logging in with has access to the app. I need to integrate authentication into the web app itself and maybe that's the issue here. I'm having trouble understanding how to authenticate and use qdt-components, is authentication and ticketing a part of this? Or is that something I need to do before instantiating the class?

miranda-elliott commented 5 years ago

I've been curious about authentication via headers and whether that would work for this case. Found a thread on Qlik Community asking a similar question about how to use auth headers with qdt-components but it doesn't have any answers.

miranda-elliott commented 5 years ago

Closing because the original issue was resolved.

Opening an authentication specific issue on the qdt-components repo: Issue #39 - Header authentication.