Page MenuHomeSoftware Heritage
Paste P1009

not created save code now submitted and failing with a more clear error
ActivePublic

Authored by ardumont on Apr 20 2021, 1:02 PM.
```
head -1 /tmp/reschedule-save-code-now.not-created.csv | swh web save submit-request | jq . | tee /tmp/reschedule-save-code-now.txt WARNING:swh.core.cli:Could not load subcommand scanner: swh-scanner
--- Logging error ---
Traceback (most recent call last):
File "/home/tony/work/inria/repo/swh/swh-environment/swh-web-client/swh/web/client/cli.py", line 165, in submit_request
saved_origin = client.origin_save(visit_type, origin)
File "/home/tony/work/inria/repo/swh/swh-environment/swh-web-client/swh/web/client/client.py", line 627, in origin_save
r = self._call(q, http_method="post")
File "/home/tony/work/inria/repo/swh/swh-environment/swh-web-client/swh/web/client/client.py", line 200, in _call
r.raise_for_status()
File "/home/tony/.virtualenvs/swh/lib/python3.7/site-packages/requests/models.py", line 943, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://archive.softwareheritage.org/api/1/origin/save/git/url/https://ftp.gnu.org/gnu/octave/octave-4.4.1.tar.gz/
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.7/logging/__init__.py", line 1034, in emit
msg = self.format(record)
File "/usr/lib/python3.7/logging/__init__.py", line 880, in format
return fmt.format(record)
File "/usr/lib/python3.7/logging/__init__.py", line 619, in format
record.message = record.getMessage()
File "/usr/lib/python3.7/logging/__init__.py", line 380, in getMessage
msg = msg % self.args
TypeError: not all arguments converted during string formatting
Call stack:
File "/home/tony/.virtualenvs/swh/bin/swh", line 33, in <module>
sys.exit(load_entry_point('swh.core', 'console_scripts', 'swh')())
File "/home/tony/work/inria/repo/swh/swh-environment/swh-core/swh/core/cli/__init__.py", line 185, in main
return swh(auto_envvar_prefix="SWH")
File "/home/tony/.virtualenvs/swh/lib/python3.7/site-packages/click/core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "/home/tony/.virtualenvs/swh/lib/python3.7/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/home/tony/.virtualenvs/swh/lib/python3.7/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/tony/.virtualenvs/swh/lib/python3.7/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/tony/.virtualenvs/swh/lib/python3.7/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/tony/.virtualenvs/swh/lib/python3.7/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/tony/.virtualenvs/swh/lib/python3.7/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/home/tony/.virtualenvs/swh/lib/python3.7/site-packages/click/decorators.py", line 21, in new_func
return f(get_current_context(), *args, **kwargs)
File "/home/tony/work/inria/repo/swh/swh-environment/swh-web-client/swh/web/client/cli.py", line 173, in submit_request
e,
Message: 'Issue during processing of origin %s with type %s\n'
Arguments: ('https://ftp.gnu.org/gnu/octave/octave-4.4.1.tar.gz', 'git', HTTPError('403 Client Error: Forbidden for url: https://archive.softwareheritage.org/api/1/origin/save/git/url/https://ftp.gnu.org/gnu/octave/octave-4.4.1.tar.gz/'))
[]
```