fix: warn about plain HTTP before the stack starts, not only afterwards

Network mode publishes the port on every interface and its access token
travels as readable text, so `docsgpt up` says so before starting rather
than in the summary at the end. The health poll's except clause says why it
swallows the error.
This commit is contained in:
Alex committed 2026-09-16 00:53:03 +01:00
1 parent db1e382502
commit 63de66722e
3 files changed
+20 -3

No files matched your search

+1
View File
@@ -138,6 +138,7 @@ def wait_healthy(
if 200 <= response.status < 300:
return True
except (OSError, http.client.HTTPException):
# Not answering yet: refused, reset, timed out or a broken response. Keep polling.
pass
remaining = deadline - clock()
if remaining <= 0: