GitHub user dosubot[bot] added a comment to the discussion:
api/v1/dashboard/{pk}/screenshot/{id}/ Giving not found
<!-- Answer -->
The "not found" error for the endpoint "api/v1/dashboard/{pk}/screenshot/{id}/"
occurs because the screenshot is not present in the cache. This is demonstrated
in the test case `test_screenshot_not_in_cache`, where both
`mock_cache_task.return_value` and `mock_get_cache.return_value` are set to
`None`, simulating a scenario where the screenshot is not cached. As a result,
the response status code is 404, indicating a "not found" error
<sup>[[1]](https://github.com/apache/superset/blob/master/tests/integration_tests/dashboards/api_tests.py)</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/f9896f87-bda1-4d8f-852b-03bc1c449fef?feedback_type=great_response)
| [Irrelevant
Answer](https://app.dosu.dev/response-feedback/f9896f87-bda1-4d8f-852b-03bc1c449fef?feedback_type=irrelevant_answer)
| [Incorrect
Sources](https://app.dosu.dev/response-feedback/f9896f87-bda1-4d8f-852b-03bc1c449fef?feedback_type=incorrect_sources)
| [Too
Verbose](https://app.dosu.dev/response-feedback/f9896f87-bda1-4d8f-852b-03bc1c449fef?feedback_type=too_verbose)
|
[Hallucination](https://app.dosu.dev/response-feedback/f9896f87-bda1-4d8f-852b-03bc1c449fef?feedback_type=hallucination)
| [Bug
Report](https://app.dosu.dev/response-feedback/f9896f87-bda1-4d8f-852b-03bc1c449fef?feedback_type=bug_report)
|
[Other](https://app.dosu.dev/response-feedback/f9896f87-bda1-4d8f-852b-03bc1c449fef?feedback_type=other)</sup>
GitHub link:
https://github.com/apache/superset/discussions/33181#discussioncomment-12876774
----
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]