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

Cannot consume package from VSTS private Nuget feeds #1496

Closed
blumu opened this issue Mar 4, 2016 · 15 comments
Closed

Cannot consume package from VSTS private Nuget feeds #1496

blumu opened this issue Mar 4, 2016 · 15 comments
Labels

Comments

@blumu
Copy link

blumu commented Mar 4, 2016

Paket fails to get nuget packages from private feeds created in Visual Studio Team Service Package Management

Error in paket.dependencies line 1
  couldnt load resources from https://<MyVstsProject>.visualstudio.com/DefaultCollection/_packaging/<MyPrivateFeed>/nuget/v3/index.json

It reproes using both v2 and v3 versions of the nuget feed.

@forki
Copy link
Member

forki commented Mar 4, 2016

Can you mail me a dependencies file with credentials that reproduces this?
Sforkmann at gmail
On Mar 4, 2016 3:45 AM, "William Blum" [email protected] wrote:

Paket fails to get nuget packages from private feeds created in Visual
Studio Team Service Package Management
https://www.visualstudio.com/en-us/get-started/package/overview

Error in paket.dependencies line 1
couldnt load resources from https://.visualstudio.com/DefaultCollection/_packaging//nuget/v3/index.json


Reply to this email directly or view it on GitHub
#1496.

@talbottmike
Copy link

@blumu Don't know if this'll help. But I'm using a VSTS private feed and am able to get packages by including credentials like this
Paket.Dependencies.Install """ source https://mysubdomain.pkgs.visualstudio.com/DefaultCollection/_packaging/MyFeedName/nuget/v2 username: "myusername" password: "mypassword" nuget MyPrivatePackage """;;

@blumu
Copy link
Author

blumu commented Mar 4, 2016

@forki I can't share the credentials to this project/feed unfortunately. The source is configured as follows in the paket dependency file:

source https://MYPROJECT.pkgs.visualstudio.com/DefaultCollection/_packaging/MYFEED/nuget/v3/index.json username: "***" password: "***"

I tried with both v2 and v3 and got the same error after running the command:

 .\.paket\paket.exe convert-from-nuget

@blumu
Copy link
Author

blumu commented Mar 4, 2016

Correction: the actual error message I get when running paket convert-from-nugget is:

Paket version 2.51.4.0
Dependencies files saved to sources/paket.dependencies
Resolving packages for group Main:
 - MyPackage is pinned to 2015.11.26.1
Paket failed with:
        Couldn't get package details for package MyPackage 2015.11.26.1 on any of ["https://www.nuget.org/api/v2";
 "https://MyProject.pkgs.visualstudio.com/DefaultCollection/_packaging/MyVstsFeed/nuget/v3/index.json"].

@forki
Copy link
Member

forki commented Mar 4, 2016

Ok this is a really weird error. It finds the package versions, but not the
concrete package. Will be nearly impossible for me to debug without access
On Mar 4, 2016 9:31 PM, "William Blum" [email protected] wrote:

Correction: the actual error message I get when running paket
convert-from-nugget is:

Paket version 2.51.4.0
Dependencies files saved to sources/paket.dependencies
Resolving packages for group Main:

  • MyPackage is pinned to 2015.11.26.1
    Paket failed with:
    Couldn't get package details for package MyPackage 2015.11.26.1 on any of ["https://www.nuget.org/api/v2";
    "https://MyProject.pkgs.visualstudio.com/DefaultCollection/_packaging/MyVstsFeed/nuget/v3/index.json"].


Reply to this email directly or view it on GitHub
#1496 (comment).

@forki
Copy link
Member

forki commented Mar 7, 2016

pretty sure it depends on the url in https://MyProject.pkgs.visualstudio.com/DefaultCollection/_packaging/MyVstsFeed/nuget/v3/index.json

but I'd need access to solve that.

@blumu
Copy link
Author

blumu commented Mar 7, 2016

Is there any switch I could use when running paket.exe to collect additional diagnostics for you to debug?

@blumu
Copy link
Author

blumu commented Mar 7, 2016

@forki I can share with you the content of the index.json file if this helps. Let me know.

@forki
Copy link
Member

forki commented Mar 8, 2016

no idnex.json doesn't really help.

I need access to a similar visualstudio.com server. Can you set up one for testing where this reproduces and give me access?

@forki
Copy link
Member

forki commented Mar 9, 2016

I created an account and it looks like I can reproduce

@forki forki added the bug label Mar 9, 2016
@forki forki closed this as completed in 7abb738 Mar 9, 2016
@blumu
Copy link
Author

blumu commented Mar 9, 2016

Awesome. Looking forward to next release with the fix!

@forki
Copy link
Member

forki commented Mar 9, 2016

it's already released

@isaacabraham
Copy link
Contributor

lol

@blumu
Copy link
Author

blumu commented Mar 10, 2016

I confirm that the fix works for me. Thanks for implementing this quick workaround!

@stuartjdavies
Copy link

I have the same issue. Has this error been fixed? Is there a work around?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants