Skip to content

Unhandled Error when unable to access alchemy api. #2

@ncphillips

Description

@ncphillips

There is an unhandled Error which crashes the server when there is no access to the Alchemy API.

Code:

alchemy.sentiment("text", req.body.story_text, {}, function() { ... });

Output:

events.js:141
      throw er; // Unhandled 'error' event
            ^
Error: getaddrinfo ENOTFOUND access.alchemyapi.com access.alchemyapi.com:80
    at errnoException (dns.js:25:10)
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:75:26)

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