Unable to load service index for source while restoring NuGet package

Khaled Khalifa 0 Reputation points
2023-08-15T09:06:57.09+00:00

I'm trying to restore a .NET NuGet package using the restore command, and I'm getting this error

Unable to load the service index for source https://nuget.telerik.com/v3/index.json.

I already have an external feed with the credentials, as well as a nuget.config file. Here's my YAML code

steps:
- task: UseDotNet@2
  inputs:
    version: '7.x'
    includePreviewVersions: true 

- task: NuGetAuthenticate@1
  inputs:
    nuGetServiceConnections: 'TelerikFeed'
    forceReinstallCredentialProvider: true

- task: NuGetCommand@2
  inputs:
    command: 'restore'
    restoreSolution: '**/*.sln'
    feedsToUse: 'config'
    nugetConfigPath: './MBWorks/nuget.config'
    externalFeedCredentials: TelerikFeed
  timeoutInMinutes: 10
Community Center Not monitored
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ryan Hill 30,281 Reputation points Microsoft Employee Moderator
    2023-08-21T22:46:58.6433333+00:00

    Hi @Khaled Khalifa

    To troubleshoot connectivity issues with; what I'm assuming, Azure DevOps is best to ask the DevOps community or tech community. That particular audience doesn't regularly monitor questions on Q&A.

    What I would do is confirm there's no issue with the task. Try setting up your own NuGet source like myget.org and see if restore command still fails. If it does, then it seems like an issue with the task. If it doesn't then it's likely a network connectivity issue between host running the pipeline and the Telerik NuGet source.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.