GitHub user dosubot[bot] added a comment to the discussion: Deck.gl map change style directly on dashboard
<!-- Answer --> The API endpoint for downloading a dashboard screenshot as a PDF might not be found because the screenshot is not in the cache. Superset uses a caching mechanism for screenshots, and if the screenshot is not cached, the endpoint will return a 404 error. The `useDownloadScreenshot` hook in Superset attempts to fetch the screenshot multiple times (up to 30 retries) at 3-second intervals. If the screenshot is not ready within these retries, it will stop and log an error <sup>[[1]](https://github.com/apache/superset/blob/master/superset-frontend/src/dashboard/components/menu/DownloadMenuItems/DownloadScreenshot.tsx)</sup><sup>[[2]](https://github.com/apache/superset/blob/master/superset-frontend/src/dashboard/hooks/useDownloadScreenshot.ts)</sup>. Ensure that the screenshot caching process is triggered correctly by enabling the feature flag `ENABLE_DASHBOARD_SCREENSHOT_ENDPOINTS` and configuring Celery and a cache using `THUMBNAIL_CACHE_CONFIG`. Make sure Celery is properly configured to handle asynchronous tasks, as the screenshot caching process relies on it <sup>[[3]](https://github.com/apache/superset/blob/master/superset/config.py)</sup><sup>[[4]](https://github.com/apache/superset/blob/master/docs/docs/configuration/alerts-reports.mdx)</sup>. Additionally, verify that your Superset instance is up-to-date with the recent changes that added the API endpoints for generating and downloading screenshots <sup>[[5]](https://github.com/apache/superset/blob/master/superset-frontend/CHANGELOG.md)</sup>. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* --- <sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/ee76bb84-6334-4c6d-8b5a-7469e86a246f?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/ee76bb84-6334-4c6d-8b5a-7469e86a246f?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/ee76bb84-6334-4c6d-8b5a-7469e86a246f?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/ee76bb84-6334-4c6d-8b5a-7469e86a246f?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/ee76bb84-6334-4c6d-8b5a-7469e86a246f?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/ee76bb84-6334-4c6d-8b5a-7469e86a246f?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/ee76bb84-6334-4c6d-8b5a-7469e86a246f?feedback_type=other)</sup> GitHub link: https://github.com/apache/superset/discussions/32149#discussioncomment-13118022 ---- This is an automatically sent email for [email protected]. To unsubscribe, please send an email to: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
