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

Comments

Projects
None yet
5 participants
@blumu

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

This comment has been minimized.

Show comment
Hide comment
@forki

forki Mar 4, 2016

Member

Can you mail me a dependencies file with credentials that reproduces this?
Sforkmann at gmail
On Mar 4, 2016 3:45 AM, "William Blum" notifications@github.com 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.

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" notifications@github.com 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

This comment has been minimized.

Show comment
Hide comment
@talbottmike

talbottmike Mar 4, 2016

@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 """;;

talbottmike commented Mar 4, 2016

@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

This comment has been minimized.

Show comment
Hide comment
@blumu

blumu 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 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

This comment has been minimized.

Show comment
Hide comment
@blumu

blumu 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"].

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

This comment has been minimized.

Show comment
Hide comment
@forki

forki Mar 4, 2016

Member

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" notifications@github.com 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).

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" notifications@github.com 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

This comment has been minimized.

Show comment
Hide comment
@forki

forki Mar 7, 2016

Member

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.

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

This comment has been minimized.

Show comment
Hide comment
@blumu

blumu Mar 7, 2016

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

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

This comment has been minimized.

Show comment
Hide comment
@blumu

blumu Mar 7, 2016

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

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

This comment has been minimized.

Show comment
Hide comment
@forki

forki Mar 8, 2016

Member

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?

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

This comment has been minimized.

Show comment
Hide comment
@forki

forki Mar 9, 2016

Member

I created an account and it looks like I can reproduce

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 in 7abb738 Mar 9, 2016

@blumu

This comment has been minimized.

Show comment
Hide comment
@blumu

blumu Mar 9, 2016

Awesome. Looking forward to next release with the fix!

blumu commented Mar 9, 2016

Awesome. Looking forward to next release with the fix!

@forki

This comment has been minimized.

Show comment
Hide comment
@forki

forki Mar 9, 2016

Member

it's already released

Member

forki commented Mar 9, 2016

it's already released

@isaacabraham

This comment has been minimized.

Show comment
Hide comment
@isaacabraham

isaacabraham Mar 9, 2016

Contributor

lol

Contributor

isaacabraham commented Mar 9, 2016

lol

@blumu

This comment has been minimized.

Show comment
Hide comment
@blumu

blumu Mar 10, 2016

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

blumu commented Mar 10, 2016

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

@stuartjdavies

This comment has been minimized.

Show comment
Hide comment
@stuartjdavies

stuartjdavies Mar 12, 2017

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

stuartjdavies commented Mar 12, 2017

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