forked from PSLmodels/taxdata
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
When running updatecbo.py, I am getting a persistent Winsock 10054 error and having the connection reset or denied by the host at CBO's website.
Steps to reproduce:
- follow instructions for taxdata repo install
- install openpyxl
- Run
conda install -c anaconda openpyxl. - As of 2023-10-19, this updates ca-certificates: 2023.7.2~ --> ca-certificates-2023.08.22-haa95532_0
- As of 2023-10-19, this updates openssl: 3.1.2-hcfcfb64_0 --> 3.1.3-hcfcfb64_0
- Run
- run updatecbo.py
Result:
Updating CBO Economic Projections
Traceback (most recent call last):
File "C:\Users\brist\anaconda3\envs\taxdata-dev\Lib\urllib\request.py", line 1348, in do_open
h.request(req.get_method(), req.selector, req.data, headers,
File "C:\Users\brist\anaconda3\envs\taxdata-dev\Lib\http\client.py", line 1286, in request
self._send_request(method, url, body, headers, encode_chunked)
File "C:\Users\brist\anaconda3\envs\taxdata-dev\Lib\http\client.py", line 1332, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "C:\Users\brist\anaconda3\envs\taxdata-dev\Lib\http\client.py", line 1281, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "C:\Users\brist\anaconda3\envs\taxdata-dev\Lib\http\client.py", line 1041, in _send_output
self.send(msg)
File "C:\Users\brist\anaconda3\envs\taxdata-dev\Lib\http\client.py", line 979, in send
self.connect()
File "C:\Users\brist\anaconda3\envs\taxdata-dev\Lib\http\client.py", line 1458, in connect
self.sock = self._context.wrap_socket(self.sock,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\brist\anaconda3\envs\taxdata-dev\Lib\ssl.py", line 517, in wrap_socket
return self.sslsocket_class._create(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\brist\anaconda3\envs\taxdata-dev\Lib\ssl.py", line 1108, in _create
self.do_handshake()
File "C:\Users\brist\anaconda3\envs\taxdata-dev\Lib\ssl.py", line 1379, in do_handshake
self._sslobj.do_handshake()
ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host
During handling of the above exception, another exception occurred:
...
(Truncated to remove other 10054 issues that also arise, it's all the same thing.)
Potential fixes:
- Installing older versions of
openpyxl, or downgrading the two libraries that that installation updates - Upgrade or downgrade
requestsorurllib3 - Alter arguments to the GET request, including headers
- Alter other parameters such as adding sleep increments to requests to not get a denial due to spam/ddos suspicions
- Using Selenium or bs4 instead of
requests_htmlfor handling web sessions
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels