juliacebria opened a new issue, #32057:
URL: https://github.com/apache/superset/issues/32057

   
   ### Discussed in https://github.com/apache/superset/discussions/32056
   
   <div type='discussions-op-text'>
   
   <sup>Originally posted by **juliacebria** January 31, 2025</sup>
    I am trying to generate and retrieve a dashboard screenshot from Apache 
Superset using the /cache_dashboard_screenshot/ and /screenshot/{cache_key}/ 
API endpoints. The request to generate the screenshot returns a 202 Accepted 
response along with a cache_key, but when attempting to retrieve the screenshot 
using this cache_key, I receive a 404 Not Found error.
   Steps to Reproduce
   
   Send a POST request to:
   
   http://localhost:8088/api/v1/dashboard/2/cache_dashboard_screenshot/
   
   with the following payload:
       
         {
             "dataMask": {
                 "filters": [
                     {"col": "name", "op": "IN", "val": ["Aaron"]}
                 ]
             }
         }
   
   Response:
   
       {
         "cache_key": "60d0f310ff6af584fd30ea53e217c0d6",
         "dashboard_url": 
"http://superset:8088/superset/dashboard/p/jJAxQlyLVYm/";,
         "image_url": 
"http://superset:8088/api/v1/dashboard/2/screenshot/60d0f310ff6af584fd30ea53e217c0d6/";
       }
   
   Wait for 15 seconds to ensure the screenshot is processed.
   
   Send a GET request to retrieve the screenshot:
   
   
http://localhost:8088/api/v1/dashboard/2/screenshot/60d0f310ff6af584fd30ea53e217c0d6/
   
       Response:
   
           {
             "message": "Not found"
           }
   
           Status Code: 404 Not Found
   
   
   Additional Information
   
     Running Superset in a Docker Compose environment.
     The issue persists even after waiting longer before retrieving the 
screenshot.
   The dashboard exists.
   
   </div>


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