File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -319,6 +319,9 @@ async def _check_traefik_static_conf_ready():
319
319
"""Check if traefik loaded its static configuration yet"""
320
320
try :
321
321
await self ._traefik_api_request ("/api/overview" )
322
+ await self ._traefik_api_request (
323
+ f"/api/entrypoints/{ self .traefik_entrypoint } "
324
+ )
322
325
except ConnectionRefusedError :
323
326
self .log .debug (
324
327
f"Connection Refused waiting for traefik at { self .traefik_api_url } . It's probably starting up..."
@@ -331,9 +334,14 @@ async def _check_traefik_static_conf_ready():
331
334
)
332
335
return False
333
336
if e .code == 404 :
334
- self .log .debug (
335
- f"traefik api at { e .response .request .url } overview not ready yet"
336
- )
337
+ if "/entrypoints/" in e .response .request .url :
338
+ self .log .warning (
339
+ f"c.{ self .__class__ .__name__ } .traefik_entrypoint={ self .traefik_entrypoint !r} not found in traefik. Is it correct?"
340
+ )
341
+ else :
342
+ self .log .debug (
343
+ f"traefik api at { e .response .request .url } overview not ready yet"
344
+ )
337
345
return False
338
346
# unexpected
339
347
self .log .error (f"Error checking for traefik static configuration { e } " )
You can’t perform that action at this time.
0 commit comments