dosubot[bot] commented on issue #30866: URL: https://github.com/apache/superset/issues/30866#issuecomment-2462214954
<!-- Answer --> It looks like you're encountering a 404 error when trying to download the Superset dashboard as a PDF or image. This issue often arises because the image is not ready yet when the system attempts to fetch it. The function `fetchImageWithRetry` is designed to retry fetching the image, but if it's still not ready after the maximum number of retries, the download fails <sup>[[1]](https://github.com/apache/superset/blob/master/superset-frontend/src/dashboard/components/menu/DownloadMenuItems/DownloadScreenshot.tsx)</sup>. Common reasons for a screenshot not being ready include the page not being fully loaded, chart containers not rendered, or unexpected errors on the page. Ensuring the page is fully loaded and adjusting wait times for elements to render can help mitigate these issues <sup>[[2]](https://github.com/apache/superset/blob/master/superset/utils/webdriver.py)</sup>. In an EC2 environment, make sure you have the necessary configurations and dependencies set up, such as enabling the `"ALERT_REPORTS"` feature flag, configuring Celery, and installing a headless browser like Chrome or Firefox <sup>[[3]](https://github.com/apache/superset/blob/master/docs/docs/configuration/alerts-reports.mdx)</sup>. Since you've already reached out to @rusackas, it might be helpful for them to take a look at this issue as well. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
