Skip to content
This repository has been archived by the owner on Dec 8, 2020. It is now read-only.

winston - unhandled promise rejection - Error: Service Unavailable #90

Open
MrToph opened this issue Sep 19, 2020 · 0 comments
Open

winston - unhandled promise rejection - Error: Service Unavailable #90

MrToph opened this issue Sep 19, 2020 · 0 comments

Comments

@MrToph
Copy link

MrToph commented Sep 19, 2020

Hi,

I set up timber with winston logging and recently the timber service seemed to be offline and made my app crash with this unhandled promise rejection error:

2020-09-19T22:08:17.726Z - error: unhandledRejection: Error: Service Unavailable
2020-09-19T22:08:17.726289694Z app[web.1]:     at Node.sync [as _sync] (/app/node_modules/@timberio/node/src/node.ts:54:13)

There doesn't seem to be a way to catch this promise rejection when consuming the winston library as a client. Imo, it should probably be caught by the library

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant