Karthik-art opened a new issue, #23449:
URL: https://github.com/apache/superset/issues/23449

   I want to get the chart image by hitting the API in our web application. 
   I have modified the superset configuration using 
https://github.com/apache/superset/issues/20756#issuecomment-1211457084 link.
   
   ```
   let request1 = Axios.get(baseUrl + 
'/api/v1/chart/86/cache_screenshot/?q=%7B%0A%20%20%22force%22%3A%20true%2C%0A%20%20%22thumb_size%22%3A%20%5B%0A%20%20%20%200%0A%20%20%5D%2C%0A%20%20%22window_size%22%3A%20%5B%0A%20%20%20%20100%0A%20%20%5D%0A%7D',
 
                   { headers: header }).then(record => {
   
        let imageHeader = {                  
                'accept': 'accept: image/*',                                 
                'Authorization': `Bearer ${token}`,
        };
        let request2 = Axios.get(record.data.image_url, { headers: imageHeader 
})
        .then(response => {                          
        }).catch( error => {                        
        });     
   }).catch( error => { 
   });
   ```
   I have getting response in request1 /api/v1/chart/{pk}/cache_screenshot
   but request2 returns Not found response.


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