Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

File download with wget only works with auth-no-challenge argument



  • Hi there,
    today I want to implement a file download over a toolkit which we use in our development process. This toolkit (which runs on linux) will download files from the server (now ProGet) over wget. The username and password will be used from wget over a .netrc file.

    If I run a download of a file (I tested asset download and pypi-package download) with wget the ProGet-Server will response with 401 Unauthorized.

    ---response end---
    401 Unauthorized
    Registered socket 3 for persistent reuse.
    Skipping 105 bytes of body: [You are not authorized to perform the Feeds_DownloadPackage task on this feed anonymously. Please log in.] done.
    Unknown authentication scheme.
    
    Username/Password Authentication Failed.
    

    If I add the argument --auth-no-challenge to the wget call than the download will finish successfully but I this is more a workaround for this issue. As a side note the download of the same file over curl run without any issues and without extra arguments.

    Are there any possibilities to fix this issue?

    Best regards.


  • inedo-engineer

    Hi @it_9582 ,

    Unfortunately I'm not really sure what your script is doing or how to fix it... but I will describe the server (ProGet) behavior.

    Unless you allow Anonymous access on the endpoint, ProGet will respond with a 401 when you access a URL without any authentication information (API Key header, Basic credentials). That's what the message you are sharing appears to do.

    So if you're getting that message, then I guess the username/password isn't being sent? I really don't know what --auth-no-challenge means or does.

    Thanks,
    Alana


Log in to reply
 

Inedo Website HomeSupport HomeCode of ConductForums GuideDocumentation