{"action":"created","issue":{"url":"https://api.github.com/repos/NuGet/Home/issues/1448","labels_url":"https://api.github.com/repos/NuGet/Home/issues/1448/labels{/name}","comments_url":"https://api.github.com/repos/NuGet/Home/issues/1448/comments","events_url":"https://api.github.com/repos/NuGet/Home/issues/1448/events","html_url":"https://github.com/NuGet/Home/issues/1448","id":108055435,"number":1448,"title":"Package restore intermittently fails with \"Unable to find version 'x' of package 'y'\"","user":{"login":"AArnott","id":3548,"avatar_url":"https://avatars.githubusercontent.com/u/3548?v=3","gravatar_id":"","url":"https://api.github.com/users/AArnott","html_url":"https://github.com/AArnott","followers_url":"https://api.github.com/users/AArnott/followers","following_url":"https://api.github.com/users/AArnott/following{/other_user}","gists_url":"https://api.github.com/users/AArnott/gists{/gist_id}","starred_url":"https://api.github.com/users/AArnott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AArnott/subscriptions","organizations_url":"https://api.github.com/users/AArnott/orgs","repos_url":"https://api.github.com/users/AArnott/repos","events_url":"https://api.github.com/users/AArnott/events{/privacy}","received_events_url":"https://api.github.com/users/AArnott/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/NuGet/Home/labels/3%20-%20Done","name":"3 - Done","color":"CCCCCC"},{"url":"https://api.github.com/repos/NuGet/Home/labels/V3.3-Sprint1","name":"V3.3-Sprint1","color":"bfd4f2"}],"state":"closed","locked":false,"assignee":{"login":"emgarten","id":6381138,"avatar_url":"https://avatars.githubusercontent.com/u/6381138?v=3","gravatar_id":"","url":"https://api.github.com/users/emgarten","html_url":"https://github.com/emgarten","followers_url":"https://api.github.com/users/emgarten/followers","following_url":"https://api.github.com/users/emgarten/following{/other_user}","gists_url":"https://api.github.com/users/emgarten/gists{/gist_id}","starred_url":"https://api.github.com/users/emgarten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emgarten/subscriptions","organizations_url":"https://api.github.com/users/emgarten/orgs","repos_url":"https://api.github.com/users/emgarten/repos","events_url":"https://api.github.com/users/emgarten/events{/privacy}","received_events_url":"https://api.github.com/users/emgarten/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/NuGet/Home/milestones/15","html_url":"https://github.com/NuGet/Home/milestones/3.3.0-commandline","labels_url":"https://api.github.com/repos/NuGet/Home/milestones/15/labels","id":1221233,"number":15,"title":"3.3.0-commandline","description":"3.3.0-commandline\r\n\r\nThis release has a set of bug fixes that where deemed not blocking for the 3.2 release.\r\n","creator":{"login":"deepakaravindr","id":2380340,"avatar_url":"https://avatars.githubusercontent.com/u/2380340?v=3","gravatar_id":"","url":"https://api.github.com/users/deepakaravindr","html_url":"https://github.com/deepakaravindr","followers_url":"https://api.github.com/users/deepakaravindr/followers","following_url":"https://api.github.com/users/deepakaravindr/following{/other_user}","gists_url":"https://api.github.com/users/deepakaravindr/gists{/gist_id}","starred_url":"https://api.github.com/users/deepakaravindr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deepakaravindr/subscriptions","organizations_url":"https://api.github.com/users/deepakaravindr/orgs","repos_url":"https://api.github.com/users/deepakaravindr/repos","events_url":"https://api.github.com/users/deepakaravindr/events{/privacy}","received_events_url":"https://api.github.com/users/deepakaravindr/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":50,"state":"open","created_at":"2015-07-22T23:09:16Z","updated_at":"2015-11-26T01:20:57Z","due_on":"2015-11-30T08:00:00Z","closed_at":null},"comments":20,"created_at":"2015-09-24T04:12:42Z","updated_at":"2016-01-20T10:03:18Z","closed_at":"2015-10-21T04:57:22Z","body":"One example: \r\nhttps://ci.appveyor.com/project/AArnott/nerdbank-gitversioning/build/1.0.5\r\n\r\nI see this perhaps 5-10% of the time when I do a nuget restore -- simply rerunning the command resolve the issue. But it is distressing to automation that will frequently fail because of this. Why is nuget failing to find the package on nuget.org?"},"comment":{"url":"https://api.github.com/repos/NuGet/Home/issues/comments/173151964","html_url":"https://github.com/NuGet/Home/issues/1448#issuecomment-173151964","issue_url":"https://api.github.com/repos/NuGet/Home/issues/1448","id":173151964,"user":{"login":"rovinbhandari","id":729475,"avatar_url":"https://avatars.githubusercontent.com/u/729475?v=3","gravatar_id":"","url":"https://api.github.com/users/rovinbhandari","html_url":"https://github.com/rovinbhandari","followers_url":"https://api.github.com/users/rovinbhandari/followers","following_url":"https://api.github.com/users/rovinbhandari/following{/other_user}","gists_url":"https://api.github.com/users/rovinbhandari/gists{/gist_id}","starred_url":"https://api.github.com/users/rovinbhandari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rovinbhandari/subscriptions","organizations_url":"https://api.github.com/users/rovinbhandari/orgs","repos_url":"https://api.github.com/users/rovinbhandari/repos","events_url":"https://api.github.com/users/rovinbhandari/events{/privacy}","received_events_url":"https://api.github.com/users/rovinbhandari/received_events","type":"User","site_admin":false},"created_at":"2016-01-20T10:03:18Z","updated_at":"2016-01-20T10:03:18Z","body":"I hit this issue very recently with trying to install/restore nuget packages created internally in my company; the source was specified correctly and the package existed there but a similar error was thrown. Leaving this comment here for other people who might have similar issues.\r\n\r\n#### With NuGet.exe version 2.8.60717.93\r\n    Source: file://\\\\server\\packages\r\n    Unable to find version '2.6.4.0' of package 'Company.CustomPackage'\r\n\r\n#### With NuGet.exe version 3.3.0.212\r\n    Feeds used:\r\n        file://\\\\server\\packages\r\n    Restoring NuGet package Company.CustomPackage.2.6.4.\r\n    WARNING: Unable to find version '2.6.4' of package 'Company.CustomPackage'.\r\n\r\nThe problem wasn't that the package didn't exist in the source provided as a command line argument, where I was looking based on the error/warning I got. In fact, there was a mismatch between the versions in the filename (Company.CustomPackage.2.6.4.0.nupkg) and the version specified in the nuspec inside the package (it was 2.6.3.0).\r\n\r\nI'm not sure if this scenario qualifies as something which should be fixed (as in, properly reported) in the nuget client; please consider fixing it!"}}