Nuget软件包无法恢复,并显示以下错误-100000ms后,HTTP请求已超时 [英] Nuget package failed to restore with the Error - The HTTP request has timed out after 100000ms

查看:698
本文介绍了Nuget软件包无法恢复,并显示以下错误-100000ms后,HTTP请求已超时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从Azure Artifacts Feed还原程序包时出现错误。
我的工作是,我有一个nuget.config文件(其中包含我的Azure工件提要的URL和凭据),该文件是从构建机器上的nuget.exe调用的。



问题是,在同一网络的构建计算机上,此过程运行正常。从另一个网络的计算机上也恢复了软件包,除了一个软件包,这里只有一个软件包出现错误。



错误-

  packages.config项目中的错误
无法找到软件包 MyPackage的版本 1.1.32.1。
https:// MyOrg:8080 / tfs / MyProj / _packaging / MyFeed / nuget / v3 / index.json:从https:// MyOrg下载 MyPackage.1.1.32.1时出错。
56c70b71-9921-40e7-968e-1234567cfe4d / nuget / v3 / flat2 / MyPackage / 1.1.32.1 / MyPackage.1.1.32.1.nupkg。
对'GET https:// MyOrg:8080 / tfs / MyProj / _packaging / 56c70b71-9921-40e7-968e-1234567cfe4d / nuget / v3 / flat2 / MyPackage / 1.1.32.1 / MyPackage.1.1的HTTP请求。 32.1.nupkg'在100000ms后超时。

我尝试过的事情-




  • 已通过禁用并行处理进行了检查。


  • 能够从所有构建机上浏览feed的URL(


  • 检查nuget.exe版本3.5.0 / 4.1.0 / 5.5.1


  • 删除所有nuget缓存,然后再次检查。




有人可以帮助吗?

解决方案

您还可以尝试:


  1. 如果您的项目目标是 .net核心,请使用 dotnet还原。请参见


    I am getting error while restoring package from my Azure Artifacts Feed. How I do is , I have one nuget.config file(which contains url for my Azure artifacts feed and credentials) which I am calling from nuget.exe from my build machine.

    Problem is , From the same network's build machine this process is working fine. From another network's machine also packages are getting restored except one, for only one package I am getting an error here.

    Error-

    Errors in packages.config projects
        Unable to find version '1.1.32.1' of package 'MyPackage'.
          https://MyOrg:8080/tfs/MyProj/_packaging/MyFeed/nuget/v3/index.json: Error downloading 'MyPackage.1.1.32.1' from 'https://MyOrg.
    56c70b71-9921-40e7-968e-1234567cfe4d/nuget/v3/flat2/MyPackage/1.1.32.1/MyPackage.1.1.32.1.nupkg'.
          The HTTP request to 'GET https://MyOrg:8080/tfs/MyProj/_packaging/56c70b71-9921-40e7-968e-1234567cfe4d/nuget/v3/flat2/MyPackage/1.1.32.1/MyPackage.1.1.32.1.nupkg' has timed out after 100000ms.
    

    What I tried -

    • Checked with Disabling parallel processing.

    • Able to browse feed's url from all the build machines(also from another network's build machine)

    • Checked nuget.exe version 3.5.0/4.1.0/5.5.1

    • Deleted all nuget cache and checked again.

    Can anyone help with this ?

    解决方案

    You can also try:

    1. Use dotnet restore if your projects target .net core. See note here

      Use the .NET Core task, which has full support for all package scenarios currently supported by dotnet, including restore, pack, and nuget push.

    2. Check the feed and make sure it do exist valid 1.1.32.1 version of the package there.

    3. Use Feeds I select here option to check if it makes any difference(I guess maybe this issue has something to do with your nuget.config file):

    这篇关于Nuget软件包无法恢复,并显示以下错误-100000ms后,HTTP请求已超时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆