| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
_receive_loop only checked for EOF (b""), but blank lines like b"\n" or b"\r\n" are truthy and reached json.loads(), causing JSONDecodeError. Strip each line and skip when empty before parsing.
|
lgtm, thanks |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Summary
Blank/whitespace-only lines (\n, \r\n, \n) in the stream are valid no-ops in newline-delimited JSON framing but currently reach json.loads() and trigger a full logging.exception() traceback at ERROR level. This is noisy in production — especially on WSL where Windows-native agent subprocesses commonly emit \r\n blanks.
Strip each line and skip when empty before parsing. Adds a regression test.