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

Timeout error returns undefined #24

Open
pnispel opened this issue Jan 30, 2015 · 0 comments
Open

Timeout error returns undefined #24

pnispel opened this issue Jan 30, 2015 · 0 comments

Comments

@pnispel
Copy link

pnispel commented Jan 30, 2015

I'm trying to connect to a webdav server that requires user credentials. When I pass an empty string as the user and the connection times out, the values passed to the callback are undefined and null. Also, when I don't pass the user credentials at all (on the same server that requires login) the second argument (return value) passed to the callback is empty.

I'm not sure if there is a part of the webdav protocol that handles user auth, but it would be nice to have errors for both of these situations.

Here are the 'arguments' to the callback function when the user is passed as an empty string:

{ '0': undefined,
  '1': null,
  '2': 
   { cmd: 'curl',
     args: 
      [ '--silent',
        '--show-error',
        '--no-buffer',
        '--url',
        '***REMOVED***',
        '--user',
        '',
        '--verbose',
        '--max-time',
        10,
        '--request',
        'GET',
        '--location',
        '--max-redirs',
        3,
        '--header',
        'Accept: */*',
        '--header',
        'Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3',
        '--header',
        'Accept-Language: en-US,en;q=0.8',
        '--user-agent',
        'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)' ],
     time: 10006 } }
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

1 participant