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

Client should not end process when server cannot be found #4

Open
ujwal-setlur opened this issue Jan 14, 2020 · 2 comments
Open

Client should not end process when server cannot be found #4

ujwal-setlur opened this issue Jan 14, 2020 · 2 comments

Comments

@ujwal-setlur
Copy link
Contributor

Attempting to write a moleculer service template that defines a Winston Graylog logger. However, if the GL server is not available, the winston-gelf-transporter will bail causing the moleculer service to terminate. Instead, it should just warn and move on and allow the rest of the service to come up.

[2020-01-14T00:49:18.257Z] INFO  service-undefined/BROKER: Moleculer v0.14.0-beta7 is starting...
[2020-01-14T00:49:18.260Z] INFO  service-undefined/BROKER: Namespace: <not defined>
[2020-01-14T00:49:18.260Z] INFO  service-undefined/BROKER: Node ID: service-undefined
[2020-01-14T00:49:18.260Z] INFO  service-undefined/METRICS: Metrics: Enabled
[2020-01-14T00:49:18.272Z] INFO  service-undefined/REGISTRY: Strategy: RoundRobinStrategy
[2020-01-14T00:49:18.274Z] INFO  service-undefined/BROKER: Serializer: JSONSerializer
[2020-01-14T00:49:18.276Z] INFO  service-undefined/BROKER: Registered 13 internal middleware(s).
[2020-01-14T00:49:18.277Z] INFO  service-undefined/BROKER: Transporter: AmqpTransporter
[2020-01-14T00:49:18.277Z] INFO  service-undefined/BROKER: The broker built-in balancer is DISABLED.
[2020-01-14T00:49:18.302Z] INFO  service-undefined/TRANSIT: Connecting to the transporter...
[2020-01-14T00:49:18.366Z] WARN  service-undefined/TRANSPORTER: AMQP failed to connect!
[2020-01-14T00:49:18.367Z] WARN  service-undefined/TRANSIT: Connection is failed. getaddrinfo ENOTFOUND rabbitmq
Error: getaddrinfo ENOTFOUND graylog
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:64:26)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] dev: `node -r esm -r ts-node/register src/main.ts`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/ujwal/.npm/_logs/2020-01-14T00_49_18_404Z-debug.log
@snoretrain
Copy link
Contributor

@ujwal-setlur was this using 'tcp' or 'udp' for the protocol?

@ujwal-setlur
Copy link
Contributor Author

@snoretrain both

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