VitalElement / AvalonStudio

Cross platform IDE and Shell
GNU Lesser General Public License v3.0
1.63k stars 237 forks source link

Can't restore project: error 405 #771

Closed violog closed 2 years ago

violog commented 2 years ago

On Arch Linux Kernel 5.15.6, .NET Core 6.0.100, restoring project fails with error 405:

Determining projects to restore...
Retrying 'FindPackagesByIdAsyncCore' for source 'https://nuget.avaloniaui.net/repository/avalonia-all/FindPackagesById()?id='System.Security.Principal.Windows'&semVerLevel=2.0.0'.
Response status code does not indicate success: 405 (Not Allowed).
Retrying 'FindPackagesByIdAsyncCore' for source 'https://nuget.avaloniaui.net/repository/avalonia-all/FindPackagesById()?id='Newtonsoft.Json'&semVerLevel=2.0.0'.
Response status code does not indicate success: 405 (Not Allowed).
Retrying 'FindPackagesByIdAsyncCore' for source 'https://nuget.avaloniaui.net/repository/avalonia-all/FindPackagesById()?id='SharpGenTools.Sdk'&semVerLevel=2.0.0'.
Response status code does not indicate success: 405 (Not Allowed).
Retrying 'FindPackagesByIdAsyncCore' for source 'https://nuget.avaloniaui.net/repository/avalonia-all/FindPackagesById()?id='SharpZipLib'&semVerLevel=2.0.0'.
Response status code does not indicate success: 405 (Not Allowed).
Retrying 'FindPackagesByIdAsyncCore' for source 'https://nuget.avaloniaui.net/repository/avalonia-all/FindPackagesById()?id='SharpGen.Runtime'&semVerLevel=2.0.0'.
Response status code does not indicate success: 405 (Not Allowed).
Retrying 'FindPackagesByIdAsyncCore' for source 'https://nuget.avaloniaui.net/repository/avalonia-all/FindPackagesById()?id='WindowsAzure.Storage'&semVerLevel=2.0.0'.
Response status code does not indicate success: 405 (Not Allowed).
Retrying 'FindPackagesByIdAsyncCore' for source 'https://nuget.avaloniaui.net/repository/avalonia-all/FindPackagesById()?id='Mono.Posix.NETStandard'&semVerLevel=2.0.0'.
Response status code does not indicate success: 405 (Not Allowed).
Retrying 'FindPackagesByIdAsyncCore' for source 'https://nuget.avaloniaui.net/repository/avalonia-all/FindPackagesById()?id='ReactiveUI'&semVerLevel=2.0.0'.
Response status code does not indicate success: 405 (Not Allowed).
Retrying 'FindPackagesByIdAsyncCore' for source 'https://nuget.avaloniaui.net/repository/avalonia-all/FindPackagesById()?id='Avalonia'&semVerLevel=2.0.0'.
Response status code does not indicate success: 405 (Not Allowed).
Retrying 'FindPackagesByIdAsyncCore' for source 'https://nuget.avaloniaui.net/repository/avalonia-all/FindPackagesById()?id='SharpGen.Runtime.COM'&semVerLevel=2.0.0'.
Response status code does not indicate success: 405 (Not Allowed).
Retrying 'FindPackagesByIdAsyncCore' for source 'https://nuget.avaloniaui.net/repository/avalonia-all/FindPackagesById()?id='NETStandard.Library'&semVerLevel=2.0.0'.
Response status code does not indicate success: 405 (Not Allowed).
Retrying 'FindPackagesByIdAsyncCore' for source 'https://nuget.avaloniaui.net/repository/avalonia-all/FindPackagesById()?id='System.Diagnostics.Process'&semVerLevel=2.0.0'.
Response status code does not indicate success: 405 (Not Allowed).
Retrying 'FindPackagesByIdAsyncCore' for source 'https://nuget.avaloniaui.net/repository/avalonia-all/FindPackagesById()?id='AvalonStudio.winpty.NET'&semVerLevel=2.0.0'.
Response status code does not indicate success: 405 (Not Allowed).
Retrying 'FindPackagesByIdAsyncCore' for source 'https://nuget.avaloniaui.net/repository/avalonia-all/FindPackagesById()?id='System.Collections.Immutable'&semVerLevel=2.0.0'.
Response status code does not indicate success: 405 (Not Allowed).
Retrying 'FindPackagesByIdAsyncCore' for source 'https://nuget.avaloniaui.net/repository/avalonia-all/FindPackagesById()?id='System.Runtime.InteropServices.RuntimeInformation'&semVerLevel=2.0.0'.
Response status code does not indicate success: 405 (Not Allowed).
Retrying 'FindPackagesByIdAsyncCore' for source 'https://nuget.avaloniaui.net/repository/avalonia-all/FindPackagesById()?id='System.Composition'&semVerLevel=2.0.0'.
Response status code does not indicate success: 405 (Not Allowed).
Retrying 'FindPackagesByIdAsyncCore' for source 'https://nuget.avaloniaui.net/repository/avalonia-all/FindPackagesById()?id='System.Xml.ReaderWriter'&semVerLevel=2.0.0'.
Response status code does not indicate success: 405 (Not Allowed).
Retrying 'FindPackagesByIdAsyncCore' for source 'https://nuget.avaloniaui.net/repository/avalonia-all/FindPackagesById()?id='Microsoft.CSharp'&semVerLevel=2.0.0'.
Response status code does not indicate success: 405 (Not Allowed).
Retrying 'FindPackagesByIdAsyncCore' for source 'https://nuget.avaloniaui.net/repository/avalonia-all/FindPackagesById()?id='Microsoft.Extensions.DependencyModel'&semVerLevel=2.0.0'.
Response status code does not indicate success: 405 (Not Allowed).
Retrying 'FindPackagesByIdAsyncCore' for source 'https://nuget.avaloniaui.net/repository/avalonia-all/FindPackagesById()?id='System.Runtime.InteropServices'&semVerLevel=2.0.0'.
Response status code does not indicate success: 405 (Not Allowed).
Retrying 'FindPackagesByIdAsyncCore' for source 'https://nuget.avaloniaui.net/repository/avalonia-all/FindPackagesById()?id='System.IO.FileSystem.Primitives'&semVerLevel=2.0.0'.
Response status code does not indicate success: 405 (Not Allowed).
Retrying 'FindPackagesByIdAsyncCore' for source 'https://nuget.avaloniaui.net/repository/avalonia-all/FindPackagesById()?id='System.Composition.AttributedModel'&semVerLevel=2.0.0'.
Response status code does not indicate success: 405 (Not Allowed).
Retrying 'FindPackagesByIdAsyncCore' for source 'https://nuget.avaloniaui.net/repository/avalonia-all/FindPackagesById()?id='Dock.Avalonia'&semVerLevel=2.0.0'.
Response status code does not indicate success: 405 (Not Allowed).
Retrying 'FindPackagesByIdAsyncCore' for source 'https://nuget.avaloniaui.net/repository/avalonia-all/FindPackagesById()?id='Avalonia.Xaml.Interactivity'&semVerLevel=2.0.0'.
Response status code does not indicate success: 405 (Not Allowed).
Retrying 'FindPackagesByIdAsyncCore' for source 'https://nuget.avaloniaui.net/repository/avalonia-all/FindPackagesById()?id='Microsoft.DotNet.Cli.CommandLine'&semVerLevel=2.0.0'.
Response status code does not indicate success: 405 (Not Allowed).
Retrying 'FindPackagesByIdAsyncCore' for source 'https://nuget.avaloniaui.net/repository/avalonia-all/FindPackagesById()?id='Avalonia.Xaml.Interactions'&semVerLevel=2.0.0'.
Response status code does not indicate success: 405 (Not Allowed).
Retrying 'FindPackagesByIdAsyncCore' for source 'https://nuget.avaloniaui.net/repository/avalonia-all/FindPackagesById()?id='System.IO.Compression'&semVerLevel=2.0.0'.
Response status code does not indicate success: 405 (Not Allowed).
Retrying 'FindPackagesByIdAsyncCore' for source 'https://nuget.avaloniaui.net/repository/avalonia-all/FindPackagesById()?id='Avalonia.Xaml.Interactions.Custom'&semVerLevel=2.0.0'.
Response status code does not indicate success: 405 (Not Allowed).
Retrying 'FindPackagesByIdAsyncCore' for source 'https://nuget.avaloniaui.net/repository/avalonia-all/FindPackagesById()?id='Avalonia.Xaml.Behaviors'&semVerLevel=2.0.0'.
Response status code does not indicate success: 405 (Not Allowed).
Retrying 'FindPackagesByIdAsyncCore' for source 'https://nuget.avaloniaui.net/repository/avalonia-all/FindPackagesById()?id='System.Runtime.Loader'&semVerLevel=2.0.0'.
Response status code does not indicate success: 405 (Not Allowed).
Retrying 'FindPackagesByIdAsyncCore' for source 'https://nuget.avaloniaui.net/repository/avalonia-all/FindPackagesById()?id='SharpZipLib'&semVerLevel=2.0.0'.
Response status code does not indicate success: 405 (Not Allowed).
Retrying 'FindPackagesByIdAsyncCore' for source 'https://nuget.avaloniaui.net/repository/avalonia-all/FindPackagesById()?id='SharpGen.Runtime'&semVerLevel=2.0.0'.
Response status code does not indicate success: 405 (Not Allowed).
Retrying 'FindPackagesByIdAsyncCore' for source 'https://nuget.avaloniaui.net/repository/avalonia-all/FindPackagesById()?id='Mono.Posix.NETStandard'&semVerLevel=2.0.0'.
Response status code does not indicate success: 405 (Not Allowed).
Retrying 'FindPackagesByIdAsyncCore' for source 'https://nuget.avaloniaui.net/repository/avalonia-all/FindPackagesById()?id='SharpGen.Runtime.COM'&semVerLevel=2.0.0'.
Response status code does not indicate success: 405 (Not Allowed).
Retrying 'FindPackagesByIdAsyncCore' for source 'https://nuget.avaloniaui.net/repository/avalonia-all/FindPackagesById()?id='SharpGenTools.Sdk'&semVerLevel=2.0.0'.
Response status code does not indicate success: 405 (Not Allowed).
Retrying 'FindPackagesByIdAsyncCore' for source 'https://nuget.avaloniaui.net/repository/avalonia-all/FindPackagesById()?id='ReactiveUI'&semVerLevel=2.0.0'.
Response status code does not indicate success: 405 (Not Allowed).
Retrying 'FindPackagesByIdAsyncCore' for source 'https://nuget.avaloniaui.net/repository/avalonia-all/FindPackagesById()?id='System.Security.Principal.Windows'&semVerLevel=2.0.0'.
Response status code does not indicate success: 405 (Not Allowed).
Retrying 'FindPackagesByIdAsyncCore' for source 'https://nuget.avaloniaui.net/repository/avalonia-all/FindPackagesById()?id='Newtonsoft.Json'&semVerLevel=2.0.0'.
Response status code does not indicate success: 405 (Not Allowed).
Retrying 'FindPackagesByIdAsyncCore' for source 'https://nuget.avaloniaui.net/repository/avalonia-all/FindPackagesById()?id='NETStandard.Library'&semVerLevel=2.0.0'.
Response status code does not indicate success: 405 (Not Allowed).
Retrying 'FindPackagesByIdAsyncCore' for source 'https://nuget.avaloniaui.net/repository/avalonia-all/FindPackagesById()?id='System.Diagnostics.Process'&semVerLevel=2.0.0'.
Response status code does not indicate success: 405 (Not Allowed).
Retrying 'FindPackagesByIdAsyncCore' for source 'https://nuget.avaloniaui.net/repository/avalonia-all/FindPackagesById()?id='AvalonStudio.winpty.NET'&semVerLevel=2.0.0'.
Response status code does not indicate success: 405 (Not Allowed).
Retrying 'FindPackagesByIdAsyncCore' for source 'https://nuget.avaloniaui.net/repository/avalonia-all/FindPackagesById()?id='Avalonia'&semVerLevel=2.0.0'.
Response status code does not indicate success: 405 (Not Allowed).
Retrying 'FindPackagesByIdAsyncCore' for source 'https://nuget.avaloniaui.net/repository/avalonia-all/FindPackagesById()?id='System.Collections.Immutable'&semVerLevel=2.0.0'.
Response status code does not indicate success: 405 (Not Allowed).
Retrying 'FindPackagesByIdAsyncCore' for source 'https://nuget.avaloniaui.net/repository/avalonia-all/FindPackagesById()?id='WindowsAzure.Storage'&semVerLevel=2.0.0'.
Response status code does not indicate success: 405 (Not Allowed).
Retrying 'FindPackagesByIdAsyncCore' for source 'https://nuget.avaloniaui.net/repository/avalonia-all/FindPackagesById()?id='System.Runtime.InteropServices.RuntimeInformation'&semVerLevel=2.0.0'.
Response status code does not indicate success: 405 (Not Allowed).
Retrying 'FindPackagesByIdAsyncCore' for source 'https://nuget.avaloniaui.net/repository/avalonia-all/FindPackagesById()?id='System.Composition'&semVerLevel=2.0.0'.
Response status code does not indicate success: 405 (Not Allowed).
Retrying 'FindPackagesByIdAsyncCore' for source 'https://nuget.avaloniaui.net/repository/avalonia-all/FindPackagesById()?id='System.Xml.ReaderWriter'&semVerLevel=2.0.0'.
Response status code does not indicate success: 405 (Not Allowed).
Retrying 'FindPackagesByIdAsyncCore' for source 'https://nuget.avaloniaui.net/repository/avalonia-all/FindPackagesById()?id='Microsoft.CSharp'&semVerLevel=2.0.0'.
Response status code does not indicate success: 405 (Not Allowed).
Retrying 'FindPackagesByIdAsyncCore' for source 'https://nuget.avaloniaui.net/repository/avalonia-all/FindPackagesById()?id='System.Runtime.InteropServices'&semVerLevel=2.0.0'.
Response status code does not indicate success: 405 (Not Allowed).
Retrying 'FindPackagesByIdAsyncCore' for source 'https://nuget.avaloniaui.net/repository/avalonia-all/FindPackagesById()?id='System.IO.FileSystem.Primitives'&semVerLevel=2.0.0'.
Response status code does not indicate success: 405 (Not Allowed).
Retrying 'FindPackagesByIdAsyncCore' for source 'https://nuget.avaloniaui.net/repository/avalonia-all/FindPackagesById()?id='System.Composition.AttributedModel'&semVerLevel=2.0.0'.
Response status code does not indicate success: 405 (Not Allowed).
Retrying 'FindPackagesByIdAsyncCore' for source 'https://nuget.avaloniaui.net/repository/avalonia-all/FindPackagesById()?id='Microsoft.Extensions.DependencyModel'&semVerLevel=2.0.0'.
Response status code does not indicate success: 405 (Not Allowed).
Retrying 'FindPackagesByIdAsyncCore' for source 'https://nuget.avaloniaui.net/repository/avalonia-all/FindPackagesById()?id='Avalonia.Xaml.Interactivity'&semVerLevel=2.0.0'.
Response status code does not indicate success: 405 (Not Allowed).
Retrying 'FindPackagesByIdAsyncCore' for source 'https://nuget.avaloniaui.net/repository/avalonia-all/FindPackagesById()?id='Dock.Avalonia'&semVerLevel=2.0.0'.
Response status code does not indicate success: 405 (Not Allowed).
Retrying 'FindPackagesByIdAsyncCore' for source 'https://nuget.avaloniaui.net/repository/avalonia-all/FindPackagesById()?id='System.IO.Compression'&semVerLevel=2.0.0'.
Response status code does not indicate success: 405 (Not Allowed).
Retrying 'FindPackagesByIdAsyncCore' for source 'https://nuget.avaloniaui.net/repository/avalonia-all/FindPackagesById()?id='System.Runtime.Loader'&semVerLevel=2.0.0'.
Response status code does not indicate success: 405 (Not Allowed).
Retrying 'FindPackagesByIdAsyncCore' for source 'https://nuget.avaloniaui.net/repository/avalonia-all/FindPackagesById()?id='Avalonia.Xaml.Interactions'&semVerLevel=2.0.0'.
Response status code does not indicate success: 405 (Not Allowed).
Retrying 'FindPackagesByIdAsyncCore' for source 'https://nuget.avaloniaui.net/repository/avalonia-all/FindPackagesById()?id='Avalonia.Xaml.Interactions.Custom'&semVerLevel=2.0.0'.
Response status code does not indicate success: 405 (Not Allowed).
Retrying 'FindPackagesByIdAsyncCore' for source 'https://nuget.avaloniaui.net/repository/avalonia-all/FindPackagesById()?id='Avalonia.Xaml.Behaviors'&semVerLevel=2.0.0'.
Response status code does not indicate success: 405 (Not Allowed).
Retrying 'FindPackagesByIdAsyncCore' for source 'https://nuget.avaloniaui.net/repository/avalonia-all/FindPackagesById()?id='Microsoft.DotNet.Cli.CommandLine'&semVerLevel=2.0.0'.
Response status code does not indicate success: 405 (Not Allowed).
/usr/share/dotnet/sdk/6.0.100/NuGet.targets(130,5): error : Failed to retrieve information about 'NETStandard.Library' from remote source 'https://nuget.avaloniaui.net/repository/avalonia-all/FindPackagesById()?id='NETStandard.Library'&semVerLevel=2.0.0'. [/home/me/.build/AvalonStudio/AvalonStudio/AvalonStudio/AvalonStudio.csproj]
/usr/share/dotnet/sdk/6.0.100/NuGet.targets(130,5): error :   Response status code does not indicate success: 405 (Not Allowed). [/home/me/.build/AvalonStudio/AvalonStudio/AvalonStudio/AvalonStudio.csproj]
orlfi commented 2 years ago

Window 11, dotnet 5.0.403, 6.0.100 the same problem

Gribochek277 commented 2 years ago

Elementary OS 6, snap install dotnet 5.0 same problem

danwalmsley commented 2 years ago

the nuget.config has the wrong url

The feed url should be: https://nuget.avaloniaui.net/repository/avalonia-all/index.json

someone can open a PR to add the index.json and make it work.. or update to the repo to use packages from nuget.