-
Notifications
You must be signed in to change notification settings - Fork 9
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
Get Notification When the Viz failed to load #9
Comments
We performed a few tests and unfortunately, the workaround is no longer working in the embedding API v3: we would greatly benefit from having a "Viz failed to load" notification like the "onFirstInteractive" event! |
is there any effort on adding this feature? It will be so helpful. We had issues in the past with V2, and now that we're migrating to v3, it's a bit discouraging to see that v3 is carrying a known issue from the previous version. |
@florent-guinard @illonage How you are able to scrape the dom of iFrame, does browser cross-origin policy allow you to do that ? Is there any setting to configure in Tableau Server ? Please share |
@hackwithharsha We're not yet doing that. This is what we were planning to try if the "Viz failed to load" event is implemented without the error code but I'm not certain that this will be technically feasible. |
Today, the best way to go about it is to use onFirstInteractive. We are currently working on prioritizing the work on our backlog but for that we need to prioritize the scenarios of failure. The main one that we are prioritizing is Connected Apps failure scenarios. Let us know what failure scenarios you are facing. |
@illonage I want to handle connected Apps Error codes. Instead of black screens that were showing to users. In development mode, it's ok to show black screen.. not in production mode though !! |
@illonage There are three main failure scenarios we're facing:
Our interest is both in:
|
Thanks @hackwithharsha @florent-guinard ! We are currently prioritizing Connected Apps failures. I will let you know when we have a developer preview. |
@hackwithharsha I am happy to announce that the prerelease of the Embedding API v3.6 if now available: https://embedding.tableauusercontent.com/preview/getting-started-v3.html |
Great.. I will check |
@ewaldhofman-sf @illonage we are also very interested in being able to handle Viz errors. Unfortunately trying your developer preview version (we are currently on v3.1.0), we are faced with the following CORS error in browser:
http://localhost:3000 is in our domain allowlist. I have noticed that v3.1.0 does not make a call to the /signin path. Where to from here? UPDATE:
This error seems strange as we are on Tableau Cloud and so I assumed we would be on the latest version of Tableau. |
@ACronje Are you using the developer sandbox for testing the dev preview? It is now available on all pod with 23.2 release, do you mind retrying? |
The current version of the JS API offers the possibility to get a notification when the Viz object is ready (https://help.tableau.com/current/api/js_api/en-us/JavaScriptAPI/js_api_concepts_initializing.htm#get-notification-when-the-viz-object-is-ready) but there is not reliable way to have such notification when the Viz fails to load.
This can happen for a number of reasons (connectivity issue with the Tableau instance, Viz URL that changed, ...) and we'd like to be able to set up an asynchronous callback that would be called when the Viz fails to load to display an error message to the user instead of the blank screen that happens in this case.
We're currently using the workaround explained in the last answer of this post:
https://community.tableau.com/s/question/0D54T00000CWejqSAD/javascript-api-catching-errors
but we'd like a more practical/reliable option (like the "onFirstInteractive" event).
The text was updated successfully, but these errors were encountered: