Skip to content

Missing req.on("error", callback) causes global crash on connection problems #5

@webhype

Description

@webhype

I know you consider your library outdated but it works just fine :) Not sure if you're willing to add 4 lines or so, but your lib doesn't set thereq.on("error", callback);error handler in index.js. When the internet is flaky for some reason, it causes my scripts to crash globally due to the unhandled error. Would it be possible to add the handler so your API would gracefully report back the connectivity problem so I know to simply try again? Thanks a bunch!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions