dosubot[bot] commented on issue #32037:
URL: https://github.com/apache/superset/issues/32037#issuecomment-2624022044

   <!-- Answer -->
   A 404 Not Found response when accessing the 
`/api/v1/dashboard/{dashboard_id}/cache_dashboard_screenshot/` endpoint can 
occur for several reasons:
   
   1. **Dashboard Not Found**: Ensure that the `dashboard_id` (in your case, 
`2`) corresponds to an existing dashboard. If the dashboard does not exist, a 
404 response will be returned 
<sup>[[1]](https://github.com/apache/superset/blob/master/tests/integration_tests/dashboards/api_tests.py)</sup>.
   
   2. **Feature Flags Disabled**: The endpoint requires the `THUMBNAILS` and 
`ENABLE_DASHBOARD_SCREENSHOT_ENDPOINTS` feature flags to be enabled. If either 
of these flags is disabled, the endpoint will return a 404 response 
<sup>[[1]](https://github.com/apache/superset/blob/master/tests/integration_tests/dashboards/api_tests.py)</sup>.
   
   3. **Incorrect Payload Structure**: The payload structure you are using 
seems incorrect. The expected payload should be a JSON object with the 
following structure:
   
      ```json
      {
          "dataMask": {},
          "activeTabs": [],
          "anchor": "",
          "urlParams": []
      }
      ```
   
      Ensure that your payload matches this structure. The `dataMask` should be 
directly within the main JSON object, not nested under `jsonPayload` 
<sup>[[1]](https://github.com/apache/superset/blob/master/tests/integration_tests/dashboards/api_tests.py)</sup><sup>[[2]](https://github.com/apache/superset/blob/master/superset/dashboards/api.py)</sup>.
   
   Please verify these aspects to resolve the 404 error.
   
   
   <!-- 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/66ed2b6e-9e11-483f-95b2-0464db3da37b?feedback_type=great_response)
 | [Irrelevant 
Answer](https://app.dosu.dev/response-feedback/66ed2b6e-9e11-483f-95b2-0464db3da37b?feedback_type=irrelevant_answer)
 | [Incorrect 
Sources](https://app.dosu.dev/response-feedback/66ed2b6e-9e11-483f-95b2-0464db3da37b?feedback_type=incorrect_sources)
 | [Too 
Verbose](https://app.dosu.dev/response-feedback/66ed2b6e-9e11-483f-95b2-0464db3da37b?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/66ed2b6e-9e11-483f-95b2-0464db3da37b?feedback_type=hallucination)
 | 
[Other](https://app.dosu.dev/response-feedback/66ed2b6e-9e11-483f-95b2-0464db3da37b?feedback_type=other)</sup>
   


-- 
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]

Reply via email to