Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login
    1. Home
    2. nicolas.morissette_6285
    3. Posts

    Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

    If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

    N Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 3
    • Posts 23
    • Groups 0

    Posts

    Recent Best Controversial
    • Nuspec file with an empty group in dependencies breaks Proget

      Hey there here's our use case:

      • We created a connector to an AzureDevops NuGet feed from our ProGet feed
      • 3 packages on 4 can be fetched without any issue from our Proget feed
      • 1 package fails when we try to install it from our Proget feed, but works fine directly from the Azure DevOps feed
      An error occurred while retrieving package metadata for '**PackageName_Version**' from source '**our Proget Feed url**'.
        id
      
      • The difference with this package is that the .nuspec file contains a group which specifies targetFramework=".NETStandard2.0" under the dependencies section but this group is empty (no dependency specified under the group)
        NuspecIssue.png
      • We figured out that maybe ProGet assumes there will be at least 1 dependency under the group and looks for the id of the 1st one but finds none and crashes giving us this message
      • Verbose logs from nuget.exe tell us the problematic endpoint is:
        https://feed/nuget/nuget/v3/registrations-gz/PackageName/index.json
        We noticed that all the versions from the problematic package have this form:
      catalogEntry: {
        authors: "***",
        dependencyGroups: [
          {
            targetFramework: "netstandard2.0",
            dependencies: [
              {
                id: "",
                range: ""
              }
            ]
          }
        ],
        description: "Package Description",
        id: "**PackageName**",
        published: "**Date**",
        version: "**Date**"
      },
      

      The problematic part appear to be the empty id & range in the dependencies array, which should not the be there.

      We looked at the NuSpec specifications and it seems normal to have a dependency group event if there`s none.

      Let us know if it's really a ProGet bug or any more information regarding this error. Thanks a lot!!

      posted in Support nuspec dependencies id error
      N
      nicolas.morissette_6285
    • RE: Connector to a Cloud Azure DevOps nuget feed returns (401) Unauthorized using username/password but work using PAT

      Hey @rhessinger
      Thanks a lot for the incredibly fast answer.
      I will try to find a solution on our side with DevOps then.

      Have a nice day,

      Nicolas

      posted in Support
      N
      nicolas.morissette_6285
    • Connector to a Cloud Azure DevOps nuget feed returns (401) Unauthorized using username/password but work using PAT

      Hey there,

      I'm getting the following error when trying to access one of our https://pkgs.dev.azure.com instance feed:

      System.Net.WebException: The remote server returned an error: (401) Unauthorized.
      at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
      at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)
      

      I get this error when I create the connector using my username (Username@__domain__.com) and matching password.

      If I create a personal access token (PAT) for this user on the Azure Devops cloud Instance then create a the connector using token username and the token value as password it works just fine.

      Are Username and Password not suppported for Azure DevOps cloud feed?

      It's annoying because our PAT are valid for only 1 year and it adds some PAT managing we would like to avoid.

      Thanks,

      Nicolas

      posted in Support
      N
      nicolas.morissette_6285
    • 1
    • 2
    • 2 / 2