python - "Connection aborted" and "Cannot connect to proxy" -



python - "Connection aborted" and "Cannot connect to proxy" -

when code bellow running

import requests monitor_r = requests.get(monitor_url, proxies=proxies, timeout=60*4)

i these exceptions:

('connection aborted.', badstatusline("''",)) # , ('cannot connect proxy.', error(32, 'broken pipe')))

what these errors , how prepare them?

this link suggests caused @ httplib level.

it may caused trying connect https url using http seek using https:// , see if works... double check url doesn't contain dodgy characters check proxy accepting headers

python python-requests

Comments

Popular posts from this blog

c - Compilation of a code: unkown type name string -

java - Bypassing "final local variable defined in an enclosing type" -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -