Currently:
$ git clone https://github.com/SoftwareHeritage/swh-deposit.git swh $ cd swh && ./setup build && ./setup install and trying to upload like this: swh-deposit deposit --username intel --password <redacted> --archive linuxperf-v4.3.1.27.tar.gz --metadata linuxperf-v4.3.1.27.metadata.xml --partial [08/Apr/2019 11:35:03] DEBUG [swh.deposit.cli:418] Parsing cli options xml:b'<?xml version="1.0" encoding="utf-8"?>\n<sword:error xmlns="http://www.w3.org/2005/Atom"\n xmlns:sword="http://purl.org/net/sword/">\n <summary>Invalid username/password.</summary>\n <sword:treatment>processing failed</sword:treatment>\n \n <sword:verboseDescription>\n API is protected by basic authentication\n </sword:verboseDescription>\n \n</sword:error>\n' [08/Apr/2019 11:35:04] DEBUG [swh.deposit.cli:326] Create deposit xml:b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>502 Bad Gateway</title>\n</head><body>\n<h1>Bad Gateway</h1>\n<p>The proxy server received an invalid\r\nresponse from an upstream server.<br />\r\n</p>\n</body></html>\n' Traceback (most recent call last): File "/usr/local/bin/swh-deposit", line 11, in <module> load_entry_point('swh.deposit==0.0.67.post14', 'console_scripts', 'swh-deposit')() File "/usr/local/lib/python3.7/site-packages/swh.deposit-0.0.67.post14-py3.7.egg/swh/deposit/cli.py", line 449, in main return cli(auto_envvar_prefix='SWH_DEPOSIT') File "/usr/local/lib/python3.7/site-packages/Click-7.0-py3.7.egg/click/core.py", line 764, in __call__ return self.main(*args, **kwargs) File "/usr/local/lib/python3.7/site-packages/Click-7.0-py3.7.egg/click/core.py", line 717, in main rv = self.invoke(ctx) File "/usr/local/lib/python3.7/site-packages/Click-7.0-py3.7.egg/click/core.py", line 1137, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/usr/local/lib/python3.7/site-packages/Click-7.0-py3.7.egg/click/core.py", line 956, in invoke return ctx.invoke(self.callback, **ctx.params) File "/usr/local/lib/python3.7/site-packages/Click-7.0-py3.7.egg/click/core.py", line 555, in invoke return callback(*args, **kwargs) File "/usr/local/lib/python3.7/site-packages/Click-7.0-py3.7.egg/click/decorators.py", line 17, in new_func return f(get_current_context(), *args, **kwargs) File "/usr/local/lib/python3.7/site-packages/swh.deposit-0.0.67.post14-py3.7.egg/swh/deposit/cli.py", line 443, in deposit r = deposit_create(config, dry_run, logger) File "/usr/local/lib/python3.7/site-packages/swh.deposit-0.0.67.post14-py3.7.egg/swh/deposit/cli.py", line 336, in deposit_create metadata_path, in_progress, logger) File "/usr/local/lib/python3.7/site-packages/swh.deposit-0.0.67.post14-py3.7.egg/swh/deposit/client/__init__.py", line 540, in deposit_create slug) File "/usr/local/lib/python3.7/site-packages/swh.deposit-0.0.67.post14-py3.7.egg/swh/deposit/client/__init__.py", line 291, in execute error = self.parse_result_error(r.text) File "/usr/local/lib/python3.7/site-packages/swh.deposit-0.0.67.post14-py3.7.egg/swh/deposit/client/__init__.py", line 255, in parse_result_error return _parse_with_filter(xml_content, keys=['summary', 'detail']) File "/usr/local/lib/python3.7/site-packages/swh.deposit-0.0.67.post14-py3.7.egg/swh/deposit/client/__init__.py", line 54, in _parse_with_filter data = _parse(stream, encoding=encoding) File "/usr/local/lib/python3.7/site-packages/swh.deposit-0.0.67.post14-py3.7.egg/swh/deposit/client/__init__.py", line 34, in _parse data = xmltodict.parse(stream, encoding=encoding, process_namespaces=False) File "/usr/local/lib/python3.7/site-packages/xmltodict-0.12.0-py3.7.egg/xmltodict.py", line 328, in parse parser.Parse(xml_input, True) xml.parsers.expat.ExpatError: syntax error: line 1, column 49 It looks like I am missing correct authentication: b'<?xml version="1.0" encoding="utf-8"?>\n<sword:error xmlns="http://www.w3.org/2005/Atom"\n xmlns:sword="http://purl.org/net/sword/">\n <summary>Invalid username/password.</summary>\n <sword:treatment>processing failed</sword:treatment>\n \n <sword:verboseDescription>\n API is protected by basic authentication\n </sword:verboseDescription>\n \n</sword:error>\n' b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>502 Bad Gateway</title>\n</head><body>\n<h1>Bad Gateway</h1>\n<p>The proxy server received an invalid\r\nresponse from an upstream server.<br />\r\n</p>\n</body></html>\n' So could you please advise how to proceed?