Hello everyone, After adding some new filters to ...
# gooddata-cloud
j
Hello everyone, After adding some new filters to my GoodData dashboard I am having some issues. In the actual GoodData I am not having issues. But when accessing in my front end application the embedded dashboard will sometimes fail to load the data unless I refresh or resize the dashboard. This is a screenshot with no data loading then I resize it loads the data as seen on the other screenshot. Has anyone experienced this before with embedded dashboards?
👀 1
m
Hi Joaquim, checking a previous thread, I see you are using Web Components , can you confirm please? Can you please share the direct link to the dashboard where you do not have the issue (GD UI)? May I also ask, is the issue only on one dashboard/insight? Which browser are you using? And finally, a snippet or part of the code on how you are embedding the component would be helpful. Currently, I am not aware of that behaviour in the embedding environment, thus I would try to reproduce it. Please, feel free to use DM to share them.
j
So I do have both setup
main page uses embedded and on another page we use the webcomponents
I see okay let me do more debugging
I am getting these errors so I guess some calls are getting cancelled
m
Are you able to see any TraceID? Additionally, we had an old similar case regarding 'strange symbols', we found it out that that the symbol like
â
, correspond to the UTF-8 encoding of
â–²
(0xE2 0x96 0xB2) but on other encoding standards. For example,
â
_is `E2`_in the Windows-1252 encoding. Thus, probably the dashboards was created or updated via some tool or perhaps an older version of a web browser that encoded those characters differently than expected, translating the up-arrow
â–²
symbol into corresponding symbols on a different encoding. Can be the case? For that reason I would like to see the original dashboard, and also, can you try in another browser?
j
in that case scenario with strange symbols do you remember if refreshing solved the issue?
because in our when we refresh the data eventually loads as expected
most of the time it shows up like this with the hyphen
m
I forgot to mention, that the previous case was not in the embedding env. but could be something similar, can you clarify what do you mean with '_main page uses embedded and on another page we use the webcomponents'_ main page uses another embedding method, SDK?
With 'Most of the time' you. mean, most of time only in this two insights, or is happening the same int others?
j
Most of the time when there is no caching with most insights
Sorry my apologies I mixx up the embeded with the web components. You are correct about using web components using this setup
`script.textContent = `` import { setContext } from "https://innerspace.cloud.gooddata.com/components/${workspaceId}.js"; import factory, { TigerTokenAuthProvider } from "https://innerspace.cloud.gooddata.com/components/tigerBackend.js"; try { setContext({ backend: factory() .onHostname("https://innerspace.cloud.gooddata.com") .withAuthentication(new TigerTokenAuthProvider("${token}")), workspaceId: "${workspaceId}", }); } catch(e) { // console.log('Context set'); } `;
m
Thank you for this. Additionally, can you please try, create a Test empty dashboard and put it only one insight wihtout any filter?
Also, you mentioned internally everything happened just after you updated some filters and data, can you provide some details about that update? I believe, I can replicate the issue in the GD Ui, but just is happening faster. Always when I open a dashboard for first time, I can see the message for a less than a second, and I managed to find the same error you provided internally. I will escalate this to our Technical Support team, a colleague of us will provide an update.
j
Thank you for that Mauricio
So the updated including adding a new filter, which is space type filters. Which can filter the data into different zones to be displayed. The filter it self is working as expected except this bug
the calculation was done in Gooddata. Just like with the other filters, it first filters by the selected space type, then performs the calculation (either Average or Max) accordingly. filters are just extra parameters in the SQL queries.
Whats the timeout times in GD ? 60s? Is there a way for me to refresh the data with the web components similar to what the GD dashboard does?