When using the mentioned composable the REST API call that occurs returns a valid status 200 and includes a response body. However, the composable is resolving as "isError = true" with the following message: "Error: Can't extract props for unsupported widget type - wiserFilterWidget"
(I now have a suspicion this may refer to some 3rd party item that was installed on the Sisense side when this dashboard was created.)
Edit: also seeing the error referencing "richtexteditor" as well
<span>const</span> <span>dashboardOid</span> <span>=</span> <span>ref</span><span>(</span><span>'</span><span>xxxxx</span><span>'</span><span>);</span><br/><br/><span>const</span> <span>includeWidgets</span> <span>=</span> <span>ref</span><span>(</span><span>true</span><span>);</span> <span>// Decide whether to include widgets in the dashboard model</span><br/><br/><span>const</span> <span>{</span> <span>dashboard</span><span>,</span> <span>isLoading</span><span>,</span> <span>isError</span><span>,</span> <span>error</span> <span>}</span> <span>=</span> <span>useGetDashboardModel</span><span>({</span><br/><br/><span>dashboardOid</span><span>,</span><br/><br/><span>includeWidgets</span><span>,</span><br/><br/><span>});</span>
wolfphantom
OPv1.6.0 improved by throwing a new error message, and now hanging on "isLoading" instead.
Where can I find a list of "supported" widgets?
Liliia Kislitsyna
Adminwolfphantom hi! Please refer to the list of charts in the Sisense dev documentation:
https://sisense.dev/guides/sdk/modules/sdk-ui/#charts
Hope that helps!
Best Regards, Lily
Steve Lewis
Hi wolfphantom
If you're able to provide additional details on the error (more of the stack trace from the browser, or any other info) that could also help us try to identify the cause that would be super helpful too.
Taras Skvarko
Hi wolfphantom ,
It's a known behavior of useGetDashboardModel and useGetDashboardModels for now - the error is thrown, when the dashboard contains the 'unsupported' widget type like Pivot, Plugin widget, Blox, etc. In your case, the wiserFilterWidget is the plugin widget.
This behavior should be changed in the next release of Compose SDK so that even "unsupported" widgets will be returned - we should make it to version 1.6.0 soon.
Please test if the behavior is better after you update the Compose SDK version to 1.6.0 or later. Also, you can test it on the dashboard which doesn't contain any "unsupported" widgets.
Let me know if this helps.