cancel
Showing results for 
Search instead for 
Did you mean: 

Vue: useGetDashboardModel throws error

wolfphantom
8 - Cloud Apps
8 - Cloud Apps

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

 

const dashboardOid = ref('xxxxx');

const includeWidgets = ref(true); // Decide whether to include widgets in the dashboard model

const { dashboard, isLoading, isError, error } = useGetDashboardModel({

dashboardOid,

includeWidgets,

});
4 REPLIES 4

taras
Sisense Team Member
Sisense Team Member

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.

Taras Skvarko
Technical Consultant

wolfphantom
8 - Cloud Apps
8 - Cloud Apps

v1.6.0 improved by throwing a new error message, and now hanging on "isLoading" instead.

@sisense_sdk-ui-vue.js?v=0a32aac5:4566 Uncaught (in promise) TypeError: this.context[r].serializable is not a function

Where can I find a list of "supported" widgets?

@wolfphantom 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

Best Regards,
Lily

steve
Sisense Team Member
Sisense Team Member

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.