pyetrade icon indicating copy to clipboard operation
pyetrade copied to clipboard

urllib3 version needs to be 1.xx.xx

Open SeanLyn opened this issue 1 year ago • 2 comments

urllib3 version cannot be 2.xx.xx (2.0.4 is the latest) To avoid this error message, urllib3 needs to be 1.xx.xx ('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))

This is a universal problem at the oauth step for all eTrade related python codes on github.

I use version 1.26.06, and the eTrade official example Python code works fine with this version. https://cdn2.etrade.net/1/22102718310.0/aempros/content/dam/etrade/developer-site/en_US/document/downloads/EtradePythonClient.zip)

My suggestion is to add urllib3 version to requirements.txt

SeanLyn avatar Sep 09 '23 17:09 SeanLyn

I concur with adding urllib3 version 1.26.06 as a requirement.txt entry.Periodically, we can check to see if version 2 begins to work. Who knows what is actually causing the problem. If version 2 starts to work, we can remove the requirements entry at a later date.On Sep 9, 2023, at 11:36 AM, SeanLyn @.***> wrote: urllib3 version cannot be 2.xx.xx (2.0.4 is the latest) To avoid this error message, urllib3 needs to be 1.xx.xx ('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None)) This is a universal problem at the oauth step for all eTrade related python codes on github. I use version 1.26.06, and the eTrade official example Python code works fine with this version. https://cdn2.etrade.net/1/22102718310.0/aempros/content/dam/etrade/developer-site/en_US/document/downloads/EtradePythonClient.zip) My suggestion is to add urllib3 version to requirements.txt

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.***>

1rocketdude avatar Sep 09 '23 19:09 1rocketdude

I have urllib3==2.0.7 today, it doesn't work. Switch to urllib3==1.26.06 works.

cnMuggle avatar Nov 24 '23 23:11 cnMuggle