Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby/23.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
Azure pipelines VSTS,NuGet未能下载包(网关超时)?_Azure Pipelines - Fatal编程技术网

Azure pipelines VSTS,NuGet未能下载包(网关超时)?

Azure pipelines VSTS,NuGet未能下载包(网关超时)?,azure-pipelines,Azure Pipelines,我有一个VS2017解决方案,我想用VSTS构建,但NuGet restore步骤失败,原因是: 2017-07-14T07:25:30.8403126Z Installing System.Net.WebSockets.Client 4.0.0. 2017-07-14T07:25:40.0651944Z GatewayTimeout https://api.nuget.org/v3-flatcontainer/system.runtime.interopservices.windowsru

我有一个VS2017解决方案,我想用VSTS构建,但NuGet restore步骤失败,原因是:

2017-07-14T07:25:30.8403126Z Installing System.Net.WebSockets.Client 4.0.0.
2017-07-14T07:25:40.0651944Z   GatewayTimeout https://api.nuget.org/v3-flatcontainer/system.runtime.interopservices.windowsruntime/4.3.0/system.runtime.interopservices.windowsruntime.4.3.0.nupkg 11993ms
2017-07-14T07:25:40.0662422Z Failed to download package 'System.Runtime.InteropServices.WindowsRuntime.4.3.0' from 'https://api.nuget.org/v3-flatcontainer/system.runtime.interopservices.windowsruntime/4.3.0/system.runtime.interopservices.windowsruntime.4.3.0.nupkg'.
2017-07-14T07:25:40.0662422Z Response status code does not indicate success: 504 (Gateway Timeout).
2017-07-14T07:25:40.0662422Z   GET https://api.nuget.org/v3-flatcontainer/system.runtime.interopservices.windowsruntime/4.3.0/system.runtime.interopservices.windowsruntime.4.3.0.nupkg
2017-07-14T07:25:43.3028714Z Installing System.Numerics.Vectors.WindowsRuntime 4.0.1.
2017-07-14T07:25:52.0318944Z   GatewayTimeout https://api.nuget.org/v3-flatcontainer/system.runtime.interopservices.windowsruntime/4.3.0/system.runtime.interopservices.windowsruntime.4.3.0.nupkg 11964ms
2017-07-14T07:25:52.0338545Z Failed to download package 'System.Runtime.InteropServices.WindowsRuntime.4.3.0' from 'https://api.nuget.org/v3-flatcontainer/system.runtime.interopservices.windowsruntime/4.3.0/system.runtime.interopservices.windowsruntime.4.3.0.nupkg'.
2017-07-14T07:25:52.0338545Z Response status code does not indicate success: 504 (Gateway Timeout).
2017-07-14T07:25:52.0379675Z Unable to load package 'System.Runtime.InteropServices.WindowsRuntime'.
2017-07-14T07:25:52.9150812Z ##[error]Error: d:\a\_tasks\NuGetInstaller_333b11bd-d341-40d9-afcf-b32d5ce6f23b\0.2.31\node_modules\nuget-task-common\NuGet\4.0.0\NuGet.exe failed with return code: 1
2017-07-14T07:25:52.9150812Z ##[error]Packages failed to install

我试过几次运行这个构建,但是下载相同的包失败了。我可以用网络浏览器将这些软件包下载到自己的计算机上。我正在使用“Hosted VS2017”生成代理。

我今天收到了相同的错误(相同的生成昨天工作)。对我来说,这个包是hangfire.sqlserver.1.6.7,但是如果我直接输入
api.nuget.org
地址,这个包就可以下载了。我用.net核心控制台应用程序和System.net.WebSockets.Client包进行了测试,它可以与托管的VS2017构建代理一起工作。你的项目是什么?现在的结果是什么?嘿,OlavT,也和你有同样的问题,这些错误日志似乎表明连接到nuget.org站点获取你的包时出现了错误。给它几分钟,然后再试一次。这为我解决了问题。