GitHub user dosubot[bot] added a comment to the discussion: Deck.gl map change style directly on dashboard
<!-- Answer --> The error message you're encountering, `dom-to-image.js cannot fetch resource: %23c, status: 404`, suggests that there is an issue with fetching a resource during the PDF export process. This is likely related to the way `dom-to-image.js` handles resource fetching, which can sometimes fail due to CORS issues or incorrect resource paths. Here are some steps you can take to troubleshoot and potentially resolve this issue: 1. **Check Resource Paths**: Ensure that all resources (such as images, stylesheets, etc.) referenced in your deck.gl charts are accessible and have correct paths. The `%23c` in the error message might indicate a URL encoding issue, so verify that URLs are correctly formatted. 2. **CORS Configuration**: If the resources are hosted on a different domain, make sure that CORS (Cross-Origin Resource Sharing) is properly configured on the server hosting these resources. This will allow `dom-to-image.js` to fetch them without running into cross-origin issues. 3. **Use Rasterized PDF Functionality**: Since your version includes the rasterized PDF functionality, ensure that it is enabled and properly configured. This feature converts visualizations into a rasterized format, which might help bypass some of the limitations of `dom-to-image.js`. 4. **Filter Exclusions**: The `dom-to-image.js` library in Superset includes a filter to exclude certain elements, such as Mapbox controls, to prevent CORS errors. Ensure that this filter is correctly set up to exclude any problematic elements that might be causing the 404 error <sup>[[1]](https://github.com/apache/superset/blob/master/superset-frontend/src/utils/downloadAsPdf.ts)</sup>. 5. **Debugging**: Add logging or debugging statements to track which resources are failing to load. This can help identify specific resources that need attention. If these steps do not resolve the issue, you may need to provide more specific details about your setup or the context in which the error occurs for further assistance. <!-- 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/3494fb0e-c7db-432b-b7a1-6fae5bd66192?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/3494fb0e-c7db-432b-b7a1-6fae5bd66192?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/3494fb0e-c7db-432b-b7a1-6fae5bd66192?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/3494fb0e-c7db-432b-b7a1-6fae5bd66192?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/3494fb0e-c7db-432b-b7a1-6fae5bd66192?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/3494fb0e-c7db-432b-b7a1-6fae5bd66192?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/3494fb0e-c7db-432b-b7a1-6fae5bd66192?feedback_type=other)</sup> GitHub link: https://github.com/apache/superset/discussions/32149#discussioncomment-13116927 ---- 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]
