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

Do anyone plan to implement error handling? #2

Open
Pawan-Bishnoi opened this issue Nov 30, 2015 · 1 comment
Open

Do anyone plan to implement error handling? #2

Pawan-Bishnoi opened this issue Nov 30, 2015 · 1 comment

Comments

@Pawan-Bishnoi
Copy link

It crashes my server if the fluentd server is not running or somehow connection gets failed.
The error is:

events.js:141
throw er; // Unhandled 'error' event
^

Error: connect ECONNREFUSED 127.0.0.1:24224
at Object.exports._errnoException (util.js:874:11)
at exports._exceptionWithHostPort (util.js:897:20)
at TCPConnectWrap.afterConnect as oncomplete

@jsec516
Copy link

jsec516 commented Sep 30, 2016

I've a question regarding on that issue though. when I do sudo netstat -nlp|grep 24224

tcp        0      0 0.0.0.0:24224           0.0.0.0:*               LISTEN      7301/ruby       
udp        0      0 0.0.0.0:24224           0.0.0.0:*                           7301/ruby       

but when I try to connect with that something like below:

var fluentLogger = new FluentLogger({ tag: fluentTag, type: 'forward', host: '127.0.0.1', port: 24224 });

it gives me the following error:

Error: connect ECONNREFUSED 127.0.0.1:24224
    at Object.exports._errnoException (util.js:855:11)
    at exports._exceptionWithHostPort (util.js:878:20)
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1063:14)

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