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

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

Description

@MrToph

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

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