Skip to content

Can't seem to upload any assets #17

@rwols

Description

@rwols

Hey, thanks for this nice program. I can't seem to upload my assets. The command I use is

githubrelease asset rwols/Clara upload 0.2.0 path/to/some/zipfile.zip

It exits with a broken pipe error:

Traceback (most recent call last):
  File "/usr/local/bin/githubrelease", line 11, in <module>
    sys.exit(main())
  File "/Library/Python/2.7/site-packages/github_release.py", line 809, in main
    sys.argv[2:], "%s %s" % (PROG, args.command))
  File "/Library/Python/2.7/site-packages/github_release.py", line 653, in with_error_handling
    return func(*args, **kwargs)
  File "/Library/Python/2.7/site-packages/github_release.py", line 757, in gh_asset
    return _gh_parse_arguments(ASSET_COMMANDS, argv, prog)
  File "/Library/Python/2.7/site-packages/github_release.py", line 721, in _gh_parse_arguments
    for arg_name in func.description["params"]
  File "/Library/Python/2.7/site-packages/github_release.py", line 417, in gh_asset_upload
    data=f.read())
  File "/Library/Python/2.7/site-packages/github_release.py", line 28, in _request
    return request(*args, **kwargs)
  File "/Library/Python/2.7/site-packages/requests/api.py", line 56, in request
    return session.request(method=method, url=url, **kwargs)
  File "/Library/Python/2.7/site-packages/requests/sessions.py", line 488, in request
    resp = self.send(prep, **send_kwargs)
  File "/Library/Python/2.7/site-packages/requests/sessions.py", line 609, in send
    r = adapter.send(request, **kwargs)
  File "/Library/Python/2.7/site-packages/requests/adapters.py", line 473, in send
    raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', error(32, 'Broken pipe'))

The zipfile is rather large, around 8MB. Maybe that has something to do with it? Note that I can set the body of the release (and create releases).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions