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

Fetching from MyGet #466

Closed
haf opened this issue Dec 22, 2014 · 17 comments
Closed

Fetching from MyGet #466

haf opened this issue Dec 22, 2014 · 17 comments

Comments

@haf
Copy link
Member

haf commented Dec 22, 2014

Hi,

We're having trouble downloading from MyGet. This is displayed in a variety of ways; from the same error as in #357 to this strange error:

mono ./tools/paket.exe update nuget Money --verbose
Paket version 0.18.9.0
found: paket.dependencies
Parsing paket.dependencies
Resolving packages:
    - exploring FSharp.Core 3.1.2.1
[snip]
    - exploring Fuchu 0.4.0.0
  - fetching versions for Newtonsoft.Json
Paket failed with:
   Reference to undeclared entity was found.
StackTrace:
    at System.Xml.XmlDocument.ReadNodeCore (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0 
  at System.Xml.XmlDocument.ReadNodeCore (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0 
  at System.Xml.XmlDocument.ReadNodeCore (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0 
  at System.Xml.XmlDocument.ReadNodeCore (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0 
  at System.Xml.XmlDocument.ReadNodeCore (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0 
  at System.Xml.XmlDocument.ReadNodeCore (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0 
  at System.Xml.XmlDocument.ReadNodeCore (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0 
  at System.Xml.XmlDocument.ReadNodeCore (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0 
  at System.Xml.XmlDocument.ReadNode (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0 
  at System.Xml.XmlDocument.Load (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0 
  at System.Xml.XmlDocument.LoadXml (System.String xml) [0x00000] in <filename unknown>:0 
  at Paket.NuGetV2+followODataLink@30-1.Invoke (System.String _arg1) [0x00000] in <filename unknown>:0 
  at Microsoft.FSharp.Control.AsyncBuilderImpl+args@787-1[System.String,System.Collections.Generic.IEnumerable`1[System.String]].Invoke (System.String a) [0x00000] in <filename unknown>:0 

When we have this reference in paket.dependencies:

source https://www.myget.org/F/[snip]/auth/033391[snip]

The 401 Unauthorised only happens on one of two computers of ours.

@haf
Copy link
Member Author

haf commented Dec 22, 2014

@forki Could you please re-send the e-mail?

@forki
Copy link
Member

forki commented Dec 22, 2014

Resend the email? Which one?
On Dec 22, 2014 9:05 AM, "Henrik Feldt" notifications@github.com wrote:

@forki https://github.com/forki Could you please re-send the e-mail?


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

@haf
Copy link
Member Author

haf commented Dec 22, 2014

You sent me a mail about authentication problems. I'm having some trouble debugging this, since it's my colleague who is having the problem. I think we're going to use MyGet's paid support first and foremost and report findings here. However, the error above seems to be a bug in Paket under some circumstances, so we could use this thread to discussing that.

@haf haf changed the title Build with MyGet Fetching from MyGet Dec 22, 2014
@lapponiandevil
Copy link

Hi!
Jumping in here with some additional info.
This is the only package in paket.dependencies which is fetched from MyGet.
These sources are in the beginning of the file:

source https://www.myget.org/F/[snip]/auth/033391[snip]
source https://www.nuget.org

This command does not give me an error:
$mono paket.exe restore

These commands fail:

$mono paket.exe restore --force
...
Paket failed with:
   Could not download pkg 0.1.0.
    The remote server returned an error: (401) Unauthorized.
StackTrace:
    at Paket.NuGetV2+DownloadPackage@370-20.Invoke (System.String message) [0x00000] in <filename unknown>:0 
  at Microsoft.FSharp.Core.PrintfImpl+StringPrintfEnv`1[Microsoft.FSharp.Core.Unit].Finalize () [0x00000] in <filename unknown>:0 

$mono paket.exe update
$mono paket.exe update --force
$mono paket.exe update nuget [pkg]
$mono paket.exe update nuget [pkg] --force
...
Paket failed with:
   Reference to undeclared entity was found.
StackTrace:
    at System.Xml.XmlDocument.ReadNodeCore (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0 
  at System.Xml.XmlDocument.ReadNodeCore (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0 

@forki
Copy link
Member

forki commented Dec 29, 2014

@maartenba what do you think is the best way to debug this?
It's strange that it only affects one PC.

@lapponiandevil
Copy link

We are both running Mono on MBP's, if it makes a difference.

@maartenba
Copy link

Fiddler or something similar may be of use, to see what is going over the wire.

@forki
Copy link
Member

forki commented Dec 29, 2014

are you guys using proxies?
Maybe #482 is related?

@haf
Copy link
Member Author

haf commented Dec 29, 2014

No, no proxies.

@haf
Copy link
Member Author

haf commented Jan 4, 2015

Debugging...

@haf
Copy link
Member Author

haf commented Jan 6, 2015

Only happens with pre-authorized feeds, not when using username+password.

nuget.exe list -source https://www.myget.org/F/MEEEE/auth/03339128-7080-KEEEEEY

works fine.

@maartenba
Copy link

Wondering if this could be because of the guid in the URL?

Say https://www.myget.org/F/MEEEE/auth/03339128-7080-12345678 is the feed URL, does Paket support this?

@maartenba
Copy link

@haf, can you try deleting paket.lcok (or updating the feed URL in paket.lock as well)?

@forki
Copy link
Member

forki commented Jan 31, 2015

Any news on this?

@haf
Copy link
Member Author

haf commented Jan 31, 2015

Not other than the conclusion "it's easily reproducible Paket problem" from both me and the MyGet support.

@haf
Copy link
Member Author

haf commented Jan 31, 2015

I can start an e-mail thread if you want to get a private feed?

@forki
Copy link
Member

forki commented Jan 31, 2015

yes please. Would love to see this fixed.

@forki forki closed this as completed in 7ec5f43 Feb 1, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants