proxy.py: [TlsInterception] `OSError` when sending empty chunk to clients under `Python < 3.10`

So far I used proxy.py version 2.3.1 to develop a plugin. Since I switched to version 2.4.0rc2, I am getting the following info/warning messages and TLS based access is denied. I tried with rc5 which issues the same messages on both the Windows and macOS platform.

2022-01-11 15:13:15,840 - pid:1575 [W] handler.handle_readables:266 - Exception when receiving from client connection#29 with reason FileNotFoundError(2, 'No such file or directory')
2022-01-11 15:13:15,840 - pid:1576 [W] handler.handle_readables:266 - Exception when receiving from client connection#29 with reason FileNotFoundError(2, 'No such file or directory')
2022-01-11 15:13:15,840 - pid:1575 [I] server.access_log:406 - 127.0.0.1:50398 - CONNECT clientservices.googleapis.com:443 - 0 bytes - 50.59ms
2022-01-11 15:13:15,841 - pid:1576 [I] server.access_log:406 - 127.0.0.1:50400 - CONNECT accounts.google.com:443 - 0 bytes - 45.82ms
2022-01-11 15:13:16,290 - pid:1576 [W] handler.handle_readables:266 - Exception when receiving from client connection#29 with reason FileNotFoundError(2, 'No such file or directory')
2022-01-11 15:13:16,291 - pid:1576 [I] server.access_log:406 - 127.0.0.1:50404 - CONNECT www.google.com:443 - 0 bytes - 44.86ms

The browser states “The website is not reachable” and shows ERR_CONNECTION_CLOSED as the error message.

To my best knowledge, both configurations, v2.3.1 and 2.4.0rcX are using the same configuration and use the same certificates but only v2.3.1 works. I am using Python 3.9.

I also notice that there are no cached server certificates in ~/.proxy/certificates when using 2.4.0rcX.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 29 (19 by maintainers)

Most upvoted comments

Not rc6, can you try with develop on MacOS?

I am at “Type fixes (#979)”, on the develop branch, a little ahead of rc6. So that should be ok.