You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2022/09/22 13:40:28 UTC
[GitHub] [superset] 7imon7ays opened a new issue, #21550: Compressed files exported via API can't be unzipped
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: notifications-unsubscribe@superset.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
[GitHub] [superset] mayurnewase commented on issue #21550: Compressed files exported via API can't be unzipped
Posted by GitBox <gi...@apache.org>.
mayurnewase commented on issue #21550:
URL: https://github.com/apache/superset/issues/21550#issuecomment-1256880514
I did below linux with current latest master, working fine.
curl http://localhost:9000/api/v1/dashboard/export/?q=!(16,15)&token=uL2B2sPsP --output dash_export.zip
{not including auth headers}.
resulting zip can be read properly.
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
[GitHub] [superset] 7imon7ays commented on issue #21550: Compressed files exported via API can't be unzipped
Posted by GitBox <gi...@apache.org>.
7imon7ays commented on issue #21550:
URL: https://github.com/apache/superset/issues/21550#issuecomment-1258197490
Following your curl example I see that I needed to read the response body as binary and not as a string. Mac works fine. Thank you @mayurnewase!
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
[GitHub] [superset] 7imon7ays closed issue #21550: Compressed files exported via API can't be unzipped
Posted by GitBox <gi...@apache.org>.
7imon7ays closed issue #21550: Compressed files exported via API can't be unzipped
URL: https://github.com/apache/superset/issues/21550
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org