-
Notifications
You must be signed in to change notification settings - Fork 706
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error NU1301: Unable to load the service index for source Failed to restore (in 6.21 sec). #531
Comments
Is |
I got past this error by downgrading the swagger to 8.11. and I still get the |
If adding the password directly to the nuget.config with the add source command didn't work, using this cred provider with the external endpoints variable would not be expected to work either. I would recommend looking at the password. |
Hi I get this error - I think it's a new one, I've searched for it on issues here and on dotnet-docker and found nothing ##[error]Error: unable to verify the first certificate I would really appreciate any assistance.
|
is disableTLSCertificateValidation="true" in the pipeline as well? Can you also confirm that the direct usage of a certificate using the As a FYI, the NugetAuthenticateV1 Task downloads a version of the credprovider onto the pipeline agent machine if it isn't already present. The only reason to manually install is if you want a specific version installed on the agent. Either way, this looks like an ado/on-prem configuration issue as I do not yet see any errors specific to the artifacts-credprovider itself in these logs. |
Describe the bug
posted here also dotnet/dotnet-docker#6046 (comment), ive seen them pointing to this repo, so i post here also.
in on prem Azure Devops, using azure artifacts, i try to run dotnet restore in a docker container.
It results in the error below. When running on the linux hosting the container, it works.
The error:
I've tried supplying the credentials in three ways, one is using commands, the other using a nuget.config file, the third with VSS_NUGET_EXTERNAL_FEED_ENDPOINTS, all fail:
dotnet nuget add source -name feed
dotnet nuget update source feed --valid-authentication-types basic --username "feed" --password xxxxx --store-password-in-clear-text
dotnet nuget list source
more details:
when i run with disableTLSCertificateValidation="true":
i get
when i run
it just gets stuck like this:
I would appreciate any assistance.
Which .NET image(s) are you using?
mcr.microsoft.com/dotnet/sdk:8.0
Steps to reproduce
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
ARG BUILD_CONFIGURATION=Release
WORKDIR /src
COPY ["Common/", "Common/"]
RUN dotnet nuget add source /nuget/v3/index.json --name feed
RUN dotnet nuget update source feed --valid-authentication-types basic --username "-feed" --password xxx --store-password-in-clear-text
RUN dotnet nuget list source
RUN dotnet restore "./Common/Common.csproj"
Other information
No response
Output of
docker version
Output of
docker info
The text was updated successfully, but these errors were encountered: