cli
cli copied to clipboard
CLI is showing `http: proxy error: context canceled` when client is closing the connection
Describe the bug
The CLI is showing this error when the client is closing the connection (e.g. reload in chrome or cancelling a download):
3:48PM ??? http: proxy error: context canceled
To Reproduce
Steps to reproduce the behavior:
- Host a large file via
python -m SimpleHTTPServer 8080
- Download it via e.g. Chrome
- Cancel the download
- See error
Expected behavior
The CLI should not show errors for such normal cases. Also the ???
might be confusing for the user.
Screenshots N/A
Environment
- OS: macOS
- Browser: Chrome
- Version:
$ loophole --version
loophole version 1.0.0-beta.7 (95033a34197863fe1074bf148758b30d16477fb6)
Additional context
N/A
This log is coming from http proxy which we are using there (https://github.com/loophole/cli/blob/master/internal/app/loophole/loophole.go#L286), so I can either disable logs from it completely or keep them all :/