-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EmbedClient<LookerEmbedDashboard>.connect() never resolves #63
Comments
The same for |
I had this issue recently and realized I had called the wrong URL in my |
I'm facing this issue, but only with createDashboardWithUrl and not createDashboardWithId. The 'then' and 'finally' blocks are never triggered when using 'createDashboardWithUrl'. Any suggestions on how to solve this? |
Any updates on this. I'm experiencing the same issue. The connect() call never resolves. I'm using the createDashboardWithId() call. |
I can confirm that I as well had a problem with the LookerEmbedSDK.ini() call. I didn't send in a valid URL. Once I fixed that the rest worked fine. |
running into this same problem: LookerEmbedSDK.init('<our_subdomain>.looker.com');
const embedDashboard = await LookerEmbedSDK.createDashboardWithUrl(mySignedUrlFromTheServer)
.appendTo(embedContainer.current)
.withClassName('w-full', 'h-full')
.withNext()
.build()
.connect();
console.log('this will never get printed because `connect` hangs'); As others have mentioned, the dashboard renders fine but In our case we need for I've tested this on both @whscullin @bryans99 any thoughts? |
ended up resolving this. Was a different, super-cryptic issue in my case. I'm using the return createSignedEmbedUrl({
external_user_id: 'some_id',
first_name: '',
last_name: '',
group_ids: [],
external_group_id: '',
permissions: [],
models: [],
access_filters: {},
user_attributes: {},
session_length: 3600,
embed_url: `/embed/dashboards-next/${dashboardId}?embed_domain=${LOOKER_EMBED_DOMAIN}&sdk=2`,
force_logout_login: false,
}); The Seems like strange behavior as things render fine in the iframe. Should maybe throw some sort of warning in the console? |
@joeyorlando what did you have to alter your LOOKER_EMBED_DOMAIN to? I've been fiddling with my own setup for quite some time and my embed domain of http://localhost:8080 is getting this to work, nor any other permutation I can think of. Thanks! |
After about 3 straight hours of debugging through the source code, I found that I was able to get the connect() promise to resolve by adding That value will be dependent on the location of your actual Looker instance. |
Hey guys! https://docs.looker.com/reference/embedding/sso-embed: |
I had the same issue because I had a port number :9999 at the end of my host URL in LookerEmbedSDK.init function. |
I had this exact same issue. Your comment helped me resolve this. Thanks! |
It worked for me after removing :9999 from the end of the host URL ( yourCompany.looker.com:9999 ) |
@HeyParkerJ |
Upon using the embed SDK to build a dashboard, using the same method as stated in the README:
the connect callback never resolves. Following the same type of example for Looks (createLookWithId()), I have no issue with the connect resolving. The dashboard does successfully embed, but no "on()" callbacks are triggered which I have come to believe that is due to the connect not resolving.
Is there something I'm missing? I believe I've eliminated any Looker specific configuration problem as I am able to successfully use the createLookWithId() method.
Looker 7.20.41
@looker/embed-sdk 1.4.0
The text was updated successfully, but these errors were encountered: