Bug 1732752 - Can not upload file to pagure releases
Summary: Can not upload file to pagure releases
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: pag
Version: 30
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
Assignee: Ralph Bean
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2019-07-24 09:33 UTC by Pavel Raiskup
Modified: 2019-07-24 09:33 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed:

Attachments (Terms of Use)

Description Pavel Raiskup 2019-07-24 09:33:24 UTC
$ pag upload ahoj.tar.gz 
/usr/lib/python3.7/site-packages/pag/utils.py:134: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
  return yaml.load(f.read().decode('utf-8'))
Trying to upload 'ahoj.tar.gz'
Traceback (most recent call last):
  File "/usr/bin/pag", line 11, in <module>
    load_entry_point('pag==0.8', 'console_scripts', 'pag')()
  File "/usr/lib/python3.7/site-packages/click/core.py", line 763, in __call__
    return self.main(*args, **kwargs)
  File "/usr/lib/python3.7/site-packages/click/core.py", line 716, in main
    rv = self.invoke(ctx)
  File "/usr/lib/python3.7/site-packages/click/core.py", line 1136, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/lib/python3.7/site-packages/click/core.py", line 955, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/lib/python3.7/site-packages/click/core.py", line 554, in invoke
    return callback(*args, **kwargs)
  File "/usr/lib/python3.7/site-packages/pag/utils.py", line 147, in inner
    return func(config, *args, **kwargs)
  File "/usr/lib/python3.7/site-packages/pag/utils.py", line 51, in inner
    return func(*args, **kwargs)
  File "/usr/lib/python3.7/site-packages/pag/commands/upload.py", line 28, in upload
    error = client.upload(name, tarball)
  File "/usr/lib/python3.7/site-packages/pag/client.py", line 99, in upload
    "csrf token %r" % response)
pag.client.PagureException: Couldn't get form to get csrf token <Response [404]>

Note You need to log in before you can comment on or make changes to this bug.