Skip to content

bad artifacts zip file #194

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
obelix05 opened this issue Dec 15, 2016 · 2 comments
Closed

bad artifacts zip file #194

obelix05 opened this issue Dec 15, 2016 · 2 comments

Comments

@obelix05
Copy link

I use the code-example from http://python-gitlab.readthedocs.io/en/latest/gl_objects/builds.html#streaming-example to download artifacts from gitlab. There is no error by doing this and the size of the zip-file is also correct. But it is a bad zipfile. If i open it with 7-zip, there is only one folder, one subfolder and a file with size "0". If I try to open it with the windows Explorer, the error "the compressed (zipped) folder ... is invalid." occured.
Is there any idea to solve this problem?

@obelix05
Copy link
Author

the solution is to open the zip-file in binary-mode (yes i am using windows :) )
self._fd = open('artifacts.zip', 'wb')

@gpocentek
Copy link
Contributor

gpocentek commented Dec 20, 2016

Thank you for your feedback. I'll update the doc.

@gpocentek gpocentek reopened this Dec 20, 2016
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 22, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants