Report fails to generate if dashboard doesn't contain a chart #29629
Labels
alert-reports
Namespace | Anything related to the Alert & Reports feature
dashboard:error
Related to Dashboard errors
Bug description
Superset cannot create a report for a dashboard without a chart element because the Selenium code involved waits for at least one chart element to render. A timeout occurs without a chart element present (see stack trace below).
This leads to an error message in the execution log which doesn't provide any meaningful information:
![Screenshot 2024-07-18 at 10 00 03](https://private-user-images.githubusercontent.com/117340990/349869268-5bb053d9-8a8d-4330-88ab-e839cf185001.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUwNzg4MTgsIm5iZiI6MTcyNTA3ODUxOCwicGF0aCI6Ii8xMTczNDA5OTAvMzQ5ODY5MjY4LTViYjA1M2Q5LThhOGQtNDMzMC04OGFiLWU4MzljZjE4NTAwMS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODMxJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgzMVQwNDI4MzhaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT00YjA1MTBkN2YyYjkxYzBjMjBjYTNkZmJiN2I5MzI2N2RlMDAzNmVjNjU1YWY0YjlmNjUwYjQ5NjZhYTBmNDIzJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.I0PYe9QHubTNDD992Mia-G_nn44FuTj6tq6p03an9dA)
We would suggest to either take a screenshot without chart elements present or to include a meaningful hint in the error message. Feel free to propose different solutions :-)
How to reproduce the bug
Screenshots/recordings
No response
Superset version
4.0.2
Python version
3.10
Node version
18 or greater
Browser
Chrome
Additional context
Checklist
The text was updated successfully, but these errors were encountered: