Error while restoring nuget packages using xml feed
Hi,
I've recently updated our teamcity server to version 2019.2.2 and since then, we've been having problems with .net core builds that rely on our private nuget feed (hosted on proget).
The nuget installer steps finishes without problems, but the build step systematically fails with the following message :
C:\Program Files\dotnet\sdk\2.2.108\NuGet.targets(114,5): error : Unable to load the service index for source <MY_NUGET_FEED>.
C:\Program Files\dotnet\sdk\2.2.108\NuGet.targets(114,5): error : The content at <MY_NUGET_FEED> is not a valid JSON object.
C:\Program Files\dotnet\sdk\2.2.108\NuGet.targets(114,5): error : Unexpected character encountered while parsing value: <. Path '', line 0, position 0.
The URL at <MY_NUGET_FEED> has not changed, and is still returning xml data for our internal nuget feed. On our end, the only thing that has been modified is the teamcity server, which was update from 2019.1.1 to 2019.2.2.
Can you help me troubleshoot this issue ?
Thank you.
Please sign in to leave a comment.
As per the log, JSON data has been expected while XML content has been received.
Could you please let me know how is your private feed set up? What version of NuGet.Server are you using?
Could you also:
1) enable debug logging on any agent which is capable of running the build for you (https://www.jetbrains.com/help/teamcity/viewing-build-agent-logs.html#ViewingBuildAgentLogs-GenericDebugLogging) and run the build on it?
2) share with us the teamcity-nuget.log (this is a server log) and teamcity-agent.log (from debug-enabled agent)? You could do so via "Submit a request" form which allows private file attachments.