7imon7ays opened a new issue, #21550:
URL: https://github.com/apache/superset/issues/21550

   #### How to reproduce the bug
   
   1. Hit the API endpoints `/api/v1/assets/export` or 
`/api/v1/dashboards/export`
   2. Write the response body to a .zip file
   3. Try to decompress the file
   4. On Mac OS, get "undefined error: 0". With Python's zipfile get "bad magic 
number" error".
   
   ### Expected results
   
   We expect a zipped file that follows the PK format since the payload's 
string contains special characters and starts with `PK\x03\x04`.
   
   ### Actual results
   
   I am unable to decompress the payload's string. Maybe I'm misunderstanding 
how to consume the endpoint. The docs for `/api/v1/assets/export` read "Returns 
a ZIP file with all the Superset assets (databases, datasets, charts, 
dashboards, saved queries) as YAML files."
   
   ### Environment
   
   - browser type and version: N/A
   - superset version: 2.0.0.
   - python version: `Python 3.9.7`
   - node.js version: `v16.9.1`
   - any feature flags active: None
   
   ### Checklist
   
   Make sure to follow these steps before submitting your issue - thank you!
   
   - [x] I have checked the superset logs for python stacktraces and included 
it here as text if there are any.
   - [x] I have reproduced the issue with at least the latest released version 
of superset.
   - [x] I have checked the issue tracker for the same issue and I haven't 
found one similar.
   
   ### Additional context
   
   None
   


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