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

Error EONT when using ForeverAgent #36

Open
ss44 opened this issue Jun 4, 2016 · 1 comment
Open

Error EONT when using ForeverAgent #36

ss44 opened this issue Jun 4, 2016 · 1 comment

Comments

@ss44
Copy link

ss44 commented Jun 4, 2016

I have the following case:

var request = require('request');
var ForeverAgent = require('forever-agent');
var agent = new ForeverAgent();

request("http://playertest.longtailvideo.com/adaptive/wowzaid3/playlist.m3u8", {agent:agent}, function(err, response){
    console.log(err);
    console.log(response);
    console.log(err);
});

request("http://playertest.longtailvideo.com/adaptive/wowzaid3/playlist.m3u8", function(err, response){
    console.log(err);
    console.log(response);
    console.log(err);
});

In the first request block I get the following error:

{ [Error: connect ENOENT /adaptive/wowzaid3/playlist.m3u8]
  code: 'ENOENT',
  errno: 'ENOENT',
  syscall: 'connect',
  address: '/adaptive/wowzaid3/playlist.m3u8' }

While the second without forever agent returns a response as expected. I believe this is an issue with ForeverAgent, unless my implementation or understanding of ForeverAgent's use is wrong here?

@SimonWoolf
Copy link

For what it's worth: I had the same issue, and upgrading to the latest version of the request module (2.74, which pulls in foreverAgent 0.6.1) seems to have fixed it.

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

2 participants