UChicago-Coase-Sandor / pacer_lib

http://pacer-lib.readthedocs.org/
9 stars 11 forks source link

"no host specified" #18

Open aws623 opened 8 years ago

aws623 commented 8 years ago

When trying to initiate a search agent, I get a "no host specified" error.

File "", line 1, in File "/usr/local/lib/python2.7/dist-packages/pacer_lib/scraper.py", line 42, in init self.refresh_login() File "/usr/local/lib/python2.7/dist-packages/pacer_lib/scraper.py", line 74, in refresh_login response = self.br.post(login_url, data=payload) File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 500, in post return self.request('POST', url, data=data, json=json, _kwargs) File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 457, in request resp = self.send(prep, _send_kwargs) File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 595, in send history = [resp for resp in gen] if allow_redirects else [] File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 189, in resolve_redirects allow_redirects=False, File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 569, in send r = adapter.send(request, **kwargs) File "/usr/lib/python2.7/dist-packages/requests/adapters.py", line 329, in send conn = self.get_connection(request.url, proxies) File "/usr/lib/python2.7/dist-packages/requests/adapters.py", line 243, in get_connection conn = self.poolmanager.connection_from_url(url) File "/usr/lib/python2.7/dist-packages/urllib3/poolmanager.py", line 131, in connection_from_url return self.connection_from_host(u.host, port=u.port, scheme=u.scheme) File "/usr/lib/python2.7/dist-packages/urllib3/poolmanager.py", line 102, in connection_from_host raise LocationValueError("No host specified.") urllib3.exceptions.LocationValueError: No host specified.

hudcoley commented 8 years ago

I'm running into the same problem. Supposedly this is what happens when you pass an empty host to the poolmanager in urllib3, but it's so far down that I'm not really sure what to do exactly. Let me know if you find anything and I'll do that same