-
Notifications
You must be signed in to change notification settings - Fork 525
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
Paket latest version 401 Unauthorized #1469
Comments
Can you try to find the last version that still works? Would makes things easier for us to track down |
Oh man :( That's a lot of versions in between... |
Can you try to find the please also try to run "paket update -f" so that we know it's not cache related |
Okay, I'll have a look... |
I ask because AFAIK our teamcity still works, so there must be something subtle. @agross how about you? |
As I am trying to narrow it down I came across another issue now. When I revert back to v2.36.7 I get a parse error from a public NuGet packge on NuGet.org, which is completely unrelated to my initial issue. I will continue to narrow down the original issue, but it seems to me that the package pulling is extremely unstable. Makes me wonder if there was a good reason to completely reinvent everything instead of using the well tested and working NuGet client for some of the work like getting package information which would be the same for both products. -.- |
what package? |
facaf22 seems to work. How can I reproduce that? Is the parsing a real error or does only one of the intermediate proctols fail? |
This is how I get the parsing error: paket.dependencies
paket.lock
Then I run
And I get:
With verbose on:
|
ah so that's only in older version and already fixed. Yes NuGet.org changed their dependencies format one night... |
It also seems that the original issue which I reported happened after 2.36.7, because when I use the next version 2.37.0 I get the same issue as with the very latest. I was looking at the changes 2.36.7...2.37.0 and there is quite some stuff that happened there so I need to have a closer look |
okay, makes sense re parsing error |
The private package source in question is a private ProGet instance, but I don't think it makes a different as long as package source requires authentication. I've tried debugging this issue. Not sure if that's the cause, but I've tracked missing authentication to PackageResolver.getCompatibleVersions where Should Paket try to apply authentication to such sources at a later stage when downloading the package? |
yes getcompatibleversion should only use sources with proper authentication. |
is there a way for me to reproduce? |
Just tried against myget and it works fine. |
I've started new private ProGet instance, and was able to reproduce this issue there. While NonExistingPackage.* packages don't actually exist in this private package source, it's still possible to reproduce the issue, because Paket update fails with Unauthorized 401 response from server thus reproducing the bug. You can reproduce the bug by running build.cmd, build.sh, or |
Thanks @domaslasauskas! |
thanks for createting a repro. but shouldn't https://github.com/domaslasauskas/Paket-issue-1469/blob/master/paket.dependencies#L2 contain username and pw so that I could theoretically get in? |
but If I add this then I think I can reproduce and have an idea of what's going wrong. |
ok found the bug. will fix later today |
please try with 2.50.6 |
It's fixed now, thanks! Re: credentials - we don't store credentials in paket.dependencies, they are set using |
cheers! |
When I use the latest version (2.50.2.0) I get an error when updating my packages:
It seems like Paket stops sending the Authorization header:
When I download Paket version 2.36.7 it works.
The text was updated successfully, but these errors were encountered: