Tls oversized record received with length 20527

That error seems to appear when you set https_proxy=https://<something> when it should be https_proxy=http://<something>.