Forum Discussion

wolfphantom's avatar
wolfphantom
Cloud Apps
03-25-2024

Vue: useGetDashboardModel throws error

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

  • taras's avatar
    taras
    Sisense Employee

    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.

  • 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?