Skip to content

Error EONT when using ForeverAgent #36

@ss44

Description

@ss44

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?

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