BenWirus / ZombieVoters

Find dead people who are registered to vote.
MIT License
29 stars 7 forks source link

Error occurring when running downloading death data #8

Open Cal-Fang opened 3 years ago

Cal-Fang commented 3 years ago

Obtaining zip codes for wayne mi... Obtaining a random user agent... Error occurred during loading data. Trying to use cache server https://fake-useragent.herokuapp.com/browsers/0.1.11 Traceback (most recent call last): File "/opt/anaconda3/lib/python3.7/urllib/request.py", line 1319, in do_open encode_chunked=req.has_header('Transfer-encoding')) File "/opt/anaconda3/lib/python3.7/http/client.py", line 1252, in request self._send_request(method, url, body, headers, encode_chunked) File "/opt/anaconda3/lib/python3.7/http/client.py", line 1298, in _send_request self.endheaders(body, encode_chunked=encode_chunked) File "/opt/anaconda3/lib/python3.7/http/client.py", line 1247, in endheaders self._send_output(message_body, encode_chunked=encode_chunked) File "/opt/anaconda3/lib/python3.7/http/client.py", line 1026, in _send_output self.send(msg) File "/opt/anaconda3/lib/python3.7/http/client.py", line 966, in send self.connect() File "/opt/anaconda3/lib/python3.7/http/client.py", line 938, in connect (self.host,self.port), self.timeout, self.source_address) File "/opt/anaconda3/lib/python3.7/socket.py", line 728, in create_connection raise err File "/opt/anaconda3/lib/python3.7/socket.py", line 716, in create_connection sock.connect(sa) socket.timeout: timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/opt/anaconda3/lib/python3.7/site-packages/fake_useragent/utils.py", line 67, in get context=context, File "/opt/anaconda3/lib/python3.7/urllib/request.py", line 222, in urlopen return opener.open(url, data, timeout) File "/opt/anaconda3/lib/python3.7/urllib/request.py", line 525, in open response = self._open(req, data) File "/opt/anaconda3/lib/python3.7/urllib/request.py", line 543, in _open '_open', req) File "/opt/anaconda3/lib/python3.7/urllib/request.py", line 503, in _call_chain result = func(*args) File "/opt/anaconda3/lib/python3.7/urllib/request.py", line 1347, in http_open return self.do_open(http.client.HTTPConnection, req) File "/opt/anaconda3/lib/python3.7/urllib/request.py", line 1321, in do_open raise URLError(err) urllib.error.URLError:

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/opt/anaconda3/lib/python3.7/site-packages/fake_useragent/utils.py", line 166, in load verify_ssl=verify_ssl, File "/opt/anaconda3/lib/python3.7/site-packages/fake_useragent/utils.py", line 122, in get_browser_versions verify_ssl=verify_ssl, File "/opt/anaconda3/lib/python3.7/site-packages/fake_useragent/utils.py", line 84, in get raise FakeUserAgentError('Maximum amount of retries reached') fake_useragent.errors.FakeUserAgentError: Maximum amount of retries reached Querying for deaths in the year 1900 that were born in 1900 that lived in 48101... You need to obtain a new bearer_token and guest_id and place them in your config. {'errors': [{'message': 'Invalid OAuth2 access token: authenticationInfoState=100'}]} Waiting for bearer token to refresh...

Keeps running into this error even after updating the bearer_token. Any idea what could fix this?