请求发布DNS失败

时间:2019-04-16 21:04:55

标签: python python-3.x

我正在尝试将数据发布到我的本地主机,但是它将收到此错误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)

0 个答案:

没有答案