Skip to content
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

ApplicationInsights 2.0 package is listed but doesn't exist yet #2317

Closed
abatishchev opened this issue Mar 14, 2016 · 4 comments
Closed

ApplicationInsights 2.0 package is listed but doesn't exist yet #2317

abatishchev opened this issue Mar 14, 2016 · 4 comments
Labels
Area:ErrorHandling warnings and errors/log messages & related error codes. Type:Bug
Milestone

Comments

@abatishchev
Copy link

Hi,
I understand this is likely an issue of the propagation a recently added package around the system/storage. But still would be nice if it could be addressed. For instance, fail for gracefully.

Here's the scenario: NuGet says for project 'Api' referencing Microsoft.ApplicationInsights version 1.2.3 there is an update to 2.0.0.

The most annoying here that NuGet uninstalls the existing version first, then tries to download the new version where here it fails. Ending up with leaving the project in bad state.

The output:

Successfully uninstalled 'Microsoft.ApplicationInsights 1.2.3' from Api
GET https://api.nuget.org/v3-flatcontainer/microsoft.applicationinsights/2.0.0/microsoft.applicationinsights.2.0.0.nupkg
Error downloading 'Microsoft.ApplicationInsights 2.0.0' from 'https://api.nuget.org/v3-flatcontainer/microsoft.applicationinsights/2.0.0/microsoft.applicationinsights.2.0.0.nupkg'.
Response status code does not indicate success: 404 (Not Found).
Install failed. Rolling back...
Package 'Microsoft.ApplicationInsights 2.0.0' does not exist in project 'Api'
NuGet.Protocol.Core.Types.FatalProtocolException: Error downloading 'Microsoft.ApplicationInsights 2.0.0' from 'https://api.nuget.org/v3-flatcontainer/microsoft.applicationinsights/2.0.0/microsoft.applicationinsights.2.0.0.nupkg'. ---> System.Net.Http.HttpRequestException: Response status code does not indicate success: 404 (Not Found).
   at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
   at NuGet.Protocol.HttpSource.<GetStreamAsync>d__22.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at NuGet.Protocol.GetDownloadResultUtility.<GetDownloadResultAsync>d__0.MoveNext()
   --- End of inner exception stack trace ---
   at NuGet.Protocol.GetDownloadResultUtility.<GetDownloadResultAsync>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at NuGet.Protocol.Core.v3.DownloadResourceV3.<GetDownloadResourceResultAsync>d__7.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at NuGet.PackageManagement.PackageDownloader.<GetDownloadResourceResultAsync>d__1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at NuGet.PackageManagement.NuGetPackageManager.<ExecuteNuGetProjectActionsAsync>d__49.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at NuGet.PackageManagement.NuGetPackageManager.<ExecuteNuGetProjectActionsAsync>d__49.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at NuGet.PackageManagement.UI.UIActionEngine.<>c__DisplayClass4_0.<<PerformUpdateAsync>b__1>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at NuGet.PackageManagement.UI.UIActionEngine.<PerformActionImplAsync>d__6.MoveNext()
========== Finished ==========

Thanks.

@yishaigalatzer
Copy link

@abatishchev - There are two issues here

  1. That the package is missing from one of the sources that's a server issue and I opened an immediate bug to fix it Application insights appears on V2 feed and gallery but missed from flatcontainer NuGetGallery#2939 (CC @maartenba)
  2. When it comes to not rolling back, I agree that's a good idea. It would be helpful to add clear repro steps.
    2.1 Version of visual studio and nuget
    2.2 Exact project type (mostly is it packages.config, xproj or csproj + project.json)
    2.3 What exactly did you do, if in the UI, what did you click and if in the powershell console what command did you type.

@yishaigalatzer yishaigalatzer added Area:ErrorHandling warnings and errors/log messages & related error codes. Type:Bug labels Mar 15, 2016
@yishaigalatzer yishaigalatzer added this to the 3.5 Beta milestone Mar 15, 2016
@abatishchev
Copy link
Author

2.1 Microsoft Visual Studio Enterprise 2015 Version 14.0.25029.00 Update 2 RC (dogfooding), Microsoft .NET Framework Version 4.6.01055.
2.2 Regular ASP.NET Web API with packages.config
2.3 Using UI, clicked Managed Packages on the solution node, opened the Updates tabs, clicked Select All then Update (love this button btw).

@maartenba
Copy link
Contributor

Package indeed did not exist - it has been added to the V3 flat container.

@maartenba maartenba reopened this Mar 15, 2016
@yishaigalatzer yishaigalatzer modified the milestones: 3.5 Beta, 3.5 RC Apr 8, 2016
@abatishchev
Copy link
Author

Should this be closed?

@rrelyea rrelyea modified the milestones: Future-1, 4.0 RC Oct 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area:ErrorHandling warnings and errors/log messages & related error codes. Type:Bug
Projects
None yet
Development

No branches or pull requests

4 participants