Skip to content

Fetching from MyGet #466

Closed
Closed

Description

@haf

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 [email protected] (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.

Activity

  1. haf commented on Dec 22, 2014

    @haf
    MemberAuthor

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

  2. forki commented on Dec 22, 2014

    @forki
    Member

    Resend the email? Which one?
    On Dec 22, 2014 9:05 AM, "Henrik Feldt" [email protected] 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).

  3. haf commented on Dec 22, 2014

    @haf
    MemberAuthor

    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.

  4. changed the title [-]Build with MyGet[/-] [+]Fetching from MyGet[/+] on Dec 22, 2014
  5. lapponiandevil commented on Dec 22, 2014

    @lapponiandevil

    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 [email protected] (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 
    
    
  6. forki commented on Dec 29, 2014

    @forki
    Member

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

  7. lapponiandevil commented on Dec 29, 2014

    @lapponiandevil

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

  8. maartenba commented on Dec 29, 2014

    @maartenba

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

  9. forki commented on Dec 29, 2014

    @forki
    Member

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

  10. haf commented on Dec 29, 2014

    @haf
    MemberAuthor

    No, no proxies.

  11. haf commented on Jan 4, 2015

    @haf
    MemberAuthor

    Debugging...

  12. haf commented on Jan 6, 2015

    @haf
    MemberAuthor

    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.

  13. maartenba commented on Jan 6, 2015

    @maartenba

    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?

  14. maartenba commented on Jan 9, 2015

    @maartenba

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

  15. forki commented on Jan 31, 2015

    @forki
    Member

    Any news on this?

  16. haf commented on Jan 31, 2015

    @haf
    MemberAuthor

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

  17. haf commented on Jan 31, 2015

    @haf
    MemberAuthor

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

  18. forki commented on Jan 31, 2015

    @forki
    Member

    yes please. Would love to see this fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions