Recently I have been seeing the following error several times when releasing JupyterLab 4.0.0ax:
urllib.error.HTTPError: HTTP Error 502: Bad Gateway
This sounds like an issue with GitHub, and restarting the workflow a couple of times eventually helped for the previous releases.
COMMAND: /tmp/tmpxvof53ln/bin/pip install -q dist/jupyterlab-4.0.0a23.tar.gz
Traceback (most recent call last):
File "/opt/hostedtoolcache/Python/3.9.10/x64/bin/jupyter-releaser", line 33, in <module>
sys.exit(load_entry_point('jupyter-releaser', 'console_scripts', 'jupyter-releaser')())
File "/opt/hostedtoolcache/Python/3.9.10/x64/lib/python3.9/site-packages/click/core.py", line 1130, in __call__
return self.main(*args, **kwargs)
File "/opt/hostedtoolcache/Python/3.9.10/x64/lib/python3.9/site-packages/click/core.py", line 1055, in main
rv = self.invoke(ctx)
File "/home/runner/work/jupyter_releaser/jupyter_releaser/jupyter_releaser/cli.py", line 101, in invoke
super().invoke(ctx)
File "/opt/hostedtoolcache/Python/3.9.10/x64/lib/python3.9/site-packages/click/core.py", line 1657, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/opt/hostedtoolcache/Python/3.9.10/x64/lib/python3.9/site-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/opt/hostedtoolcache/Python/3.9.10/x64/lib/python3.9/site-packages/click/core.py", line 760, in invoke
return __callback(*args, **kwargs)
File "/home/runner/work/jupyter_releaser/jupyter_releaser/jupyter_releaser/cli.py", line 615, in extract_release
lib.extract_release(
File "/home/runner/work/jupyter_releaser/jupyter_releaser/jupyter_releaser/lib.py", line 364, in extract_release
for tag in gh.list_tags():
File "/opt/hostedtoolcache/Python/3.9.10/x64/lib/python3.9/site-packages/ghapi/core.py", line 176, in list_tags
return self.git.list_matching_refs(f'tags/{prefix}')
File "/opt/hostedtoolcache/Python/3.9.10/x64/lib/python3.9/site-packages/ghapi/core.py", line 63, in __call__
return self.client(self.path, self.verb, headers=headers, route=route_p, query=query_p, data=data_p)
File "/opt/hostedtoolcache/Python/3.9.10/x64/lib/python3.9/site-packages/ghapi/core.py", line 108, in __call__
res,self.recv_hdrs = urlsend(path, verb, headers=headers or None, debug=self.debug, return_headers=True,
File "/opt/hostedtoolcache/Python/3.9.10/x64/lib/python3.9/site-packages/fastcore/net.py", line 212, in urlsend
return urlread(req, return_json=return_json, return_headers=return_headers)
File "/opt/hostedtoolcache/Python/3.9.10/x64/lib/python3.9/site-packages/fastcore/net.py", line 111, in urlread
with urlopen(url, data=data, headers=headers, timeout=timeout, **kwargs) as u: res,hdrs = u.read(),u.headers
File "/opt/hostedtoolcache/Python/3.9.10/x64/lib/python3.9/site-packages/fastcore/net.py", line 105, in urlopen
return _opener.open(urlwrap(url, data=data, headers=headers), timeout=timeout)
File "/opt/hostedtoolcache/Python/3.9.10/x64/lib/python3.9/urllib/request.py", line 523, in open
response = meth(req, response)
File "/opt/hostedtoolcache/Python/3.9.10/x64/lib/python3.9/urllib/request.py", line 632, in http_response
response = self.parent.error(
File "/opt/hostedtoolcache/Python/3.9.10/x64/lib/python3.9/urllib/request.py", line 561, in error
return self._call_chain(*args)
File "/opt/hostedtoolcache/Python/3.9.10/x64/lib/python3.9/urllib/request.py", line 494, in _call_chain
result = func(*args)
File "/opt/hostedtoolcache/Python/3.9.10/x64/lib/python3.9/urllib/request.py", line 641, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 502: Bad Gateway
Traceback (most recent call last):
File "/opt/hostedtoolcache/Python/3.9.10/x64/lib/python3.9/runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/opt/hostedtoolcache/Python/3.9.10/x64/lib/python3.9/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/runner/work/jupyter_releaser/jupyter_releaser/jupyter_releaser/actions/publish_release.py", line 10, in <module>
run(f"jupyter-releaser extract-release {release_url}")
File "/home/runner/work/jupyter_releaser/jupyter_releaser/jupyter_releaser/util.py", line 72, in run
raise e
File "/home/runner/work/jupyter_releaser/jupyter_releaser/jupyter_releaser/util.py", line 64, in run
process = tee(cmd, **kwargs)
File "/home/runner/work/jupyter_releaser/jupyter_releaser/jupyter_releaser/tee.py", line 172, in run
raise subprocess.CalledProcessError(
subprocess.CalledProcessError: Command 'jupyter-releaser extract-release https://github.com/jupyterlab/jupyterlab/releases/tag/untagged-7ba22f3a699e86e549f4' returned non-zero exit status 1.
Maybe this could be related to the content of the release, for example to many assets to download?
It also happened when releasing JupyterLab 3.3.0 a couple of weeks ago.
But not seen on other repos / projects (yet).