我正在尝试将数据发布到我的本地主机,但是它将收到此错误Failed to establish a new connection: [Errno 11001] getaddrinfo failed
。为了解决这个问题,我为请求添加了代理,但收到错误No DNS Record
。
http_proxy = "http://194.88.106.86:3128"
proxyDict = {
"http" : http_proxy,
}
ENDPOINT_URL = 'http://abc.localhost:8000'
post_api = requests.post(ENDPOINT_URL, json=data,proxies=proxyDict)