cli icon indicating copy to clipboard operation
cli copied to clipboard

CLI is showing `http: proxy error: context canceled` when client is closing the connection

Open 0x7f opened this issue 4 years ago • 1 comments

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:

  1. Host a large file via python -m SimpleHTTPServer 8080
  2. Download it via e.g. Chrome
  3. Cancel the download
  4. 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

0x7f avatar Nov 16 '20 14:11 0x7f

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 :/

Morishiri avatar Nov 19 '20 13:11 Morishiri