Skip to content

Error: getaddrinfo ENOTFOUND (postgres hostname with port) #355

@ghazel

Description

@ghazel

Between orm 2.1.0 and 2.1.1, a bug crept in when orm.connect is called with a postgres URL which specifies the port as part of the hostname:

Error: getaddrinfo ENOTFOUND
    at errnoException (dns.js:37:11)
    at Object.onanswer [as oncomplete] (dns.js:124:16)

The error seems to have been introduced in this commit: f566893

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions