mirror of
https://github.com/tiennm99/DocsGPT.git
synced 2026-10-14 16:16:48 +00:00
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:
1 parent
db1e382502
commit
63de66722e
3 files changed
+20
-3
No files matched your search
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user