Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/azure/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python Urllib3连接仅在Azure Devops构建中超时_Python_Azure_Devops_Pipeline_Python Unittest - Fatal编程技术网

Python Urllib3连接仅在Azure Devops构建中超时

Python Urllib3连接仅在Azure Devops构建中超时,python,azure,devops,pipeline,python-unittest,Python,Azure,Devops,Pipeline,Python Unittest,我正在使用Azure Devops for CI/CD,今天遇到了奇怪的问题。由于urllib3连接超时,其中一个python单元测试失败。以下是完整的输出: requests.exceptions.ConnectionError: HTTPSConnectionPool(host='goo.gl', port=443): Max retries exceeded with url: /maps/xxxxx (Caused by NewConnectionError('<urllib3.c

我正在使用Azure Devops for CI/CD,今天遇到了奇怪的问题。由于urllib3连接超时,其中一个python单元测试失败。以下是完整的输出:

requests.exceptions.ConnectionError: HTTPSConnectionPool(host='goo.gl', port=443): Max retries exceeded with url: /maps/xxxxx (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x000001AE5F442320>: Failed to establish a new connection: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond',))
requests.exceptions.ConnectionError:HTTPSConnectionPool(host='goo.gl',port=443):url:/maps/xxxxx超过最大重试次数(由NewConnectionError引起)(':无法建立新连接:[WinError 10060]连接尝试失败,因为连接方在一段时间后没有正确响应,或者建立的连接失败,因为连接的主机未能响应',))
奇怪的是,;我登录到构建计算机(它是一台自托管Windows计算机),尝试使用azure devops构建代理使用的相同配置运行相同的单元测试,并通过了测试。我所说的配置是指相同的conda环境和相同的Windows用户,即azure devops构建代理的“nt授权\网络服务”


因此,问题是为什么它会无缘无故地在管道中失败?

问题是否会重演?还是只失败过一次?它会重演。