squalou opened a new issue #9727: URL: https://github.com/apache/incubator-superset/issues/9727
Upon successful login, the "Welcome" page displays an error toast "An error occured while fetching dashboards" Used to work in 0.34.0 ### Expected results Login, Welcome page displays a list of Dashboards, another tab with recent activit, a third tab with favorites ### Actual results Login, Dashboards tab is empty, bottom shows a Toast error message "An error occured while fetching dashboards" Other tabs are fine #### Screenshots  If applicable, add screenshots to help explain your problem. #### How to reproduce the bug 1. Go to main page, 2. Click login button 3. See error ### Environment (please complete the following information): - superset version: `0.36.0` - python version: `Python 3.6.10` : - node.js version: `v12.16.3` - npm version: `6.14.4` ### Checklist Make sure these boxes are checked before submitting your issue - thank you! - [X] I have checked the superset logs for python stacktraces and included it here as text if there are any. - [X] I have reproduced the issue with at least the latest released version of superset. - [X] I have checked the issue tracker for the same issue and I haven't found one similar. ### Additional context I investigated a bit. The URI called is `/api/v1/dashboard/?q={"order_column":"changed_on","order_direction":"desc","page":0,"page_size":25}` it returns an error 400 that isn't displayed anywhere (stack is catched, only toast is left) as seen in DashboardTable.jsx ``` return SupersetClient.get({ endpoint: `/api/v1/dashboard/?q=${queryParams}`, }) .then(({ json }) => { this.setState({ dashboards: json.result, dashboard_count: json.count }); }) .catch(response => { if (response.status === 401) { this.props.addDangerToast( t( "You don't have the necessary permissions to load dashboards. Please contact your administrator.", ), ); } else { this.props.addDangerToast( t('An error occurred while fetching Dashboards'), ); } }) .finally(() => this.setState({ loading: false })); };``` Previous version seemed to call this : `/dashboardasync/api/read?_oc_DashboardModelViewAsync=changed_on&_od_DashboardModelViewAsync=desc` Also note that the URL `/dashboard/list/' works fine, but I wasn't ablo to track down the underlying api call, it's far beyond my knowledge. I only I could manage to - display the error that is caught - point to the probably offending dao I could maybe workaround the issue somehow ? ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
