问题描述
大家好,
我正在代理后面使用Azure机器学习工作台.我设置代理配置并得到有效的代理配置,但是当我尝试运行脚本时,我得到"从服务请求中接收到407.日志显示:" ... white-space:pre-wrap>(引起 通过ProxyError('无法连接到代理.',NewConnectionError('< requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x00000194504E4EF0> ;:无法建立新连接:[Errno 11001] getaddrinfo失败',)))跨度>
I am using Azure Machine Learning Workbench behind a proxy. I set the proxy configuration and gotValid proxy configuration, but when I try to run scripts I get "Received 407 from a service request" the log says: "[...] (Caused by ProxyError('Cannot connect to proxy.', NewConnectionError('<requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x00000194504E4EF0>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed',)))
如何配置代理设置并运行脚本?
谢谢.
推荐答案
错误11001 getaddrinfo是最有可能表示您使用的主机名传递给 运行
不能 被解决.
Error 11001 getaddrinfo is most likely means the hostname you're passing to run
can't be resolved.
import socket
socket.getaddrinfo('localhost', 8080)
如果它在那里不起作用,则在Bottle示例中将不起作用.如果出现问题,可以尝试使用"127.0.0.1"而不是"localhost".
If it doesn't work there, it's not going to work in the Bottle example. You can try '127.0.0.1' instead of 'localhost' in case that's the problem.
问候
宇通
这篇关于在代理后面配置Azure Machine Learning Workbench的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!