FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

bad artifacts zip file · Issue #194 · python-gitlab/python-gitlab · GitHub

Repository navigation

bad artifacts zip file #194

Description

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?

Activity

  1. obelix05 commented on Dec 20, 2016

    Author

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

  2. gpocentek commented on Dec 20, 2016

    Contributor

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

  3. locked as resolved and limited conversation to collaborators on Nov 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL