mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-18 15:33:02 +00:00
fix hub api url in extension check_hub_version
This commit is contained in:
@@ -332,11 +332,11 @@ class JupyterHubSingleUser(ExtensionApp):
|
|||||||
RETRIES = 5
|
RETRIES = 5
|
||||||
for i in range(1, RETRIES + 1):
|
for i in range(1, RETRIES + 1):
|
||||||
try:
|
try:
|
||||||
resp = await client.fetch(self.hub_api_url)
|
resp = await client.fetch(self.hub_auth.api_url)
|
||||||
except Exception:
|
except Exception:
|
||||||
self.log.exception(
|
self.log.exception(
|
||||||
"Failed to connect to my Hub at %s (attempt %i/%i). Is it running?",
|
"Failed to connect to my Hub at %s (attempt %i/%i). Is it running?",
|
||||||
self.hub_api_url,
|
self.hub_auth.api_url,
|
||||||
i,
|
i,
|
||||||
RETRIES,
|
RETRIES,
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user