Skip to content

Error: getaddrinfo ENOTFOUND thrown for complex password with '@' at sign in it #11

@bronius

Description

@bronius

Given a normal mysql connection string containing a password with an at sign ('@') as one of the characters, MySQL fails to connect when issued a command.

  • The connections itself (.connect()) doesn't thrown an error, it "connects" just fine
  • A query sent (say, .findOne()) causes hyena/dns.js to throw the error Error: getaddrinfo ENOTFOUND

Don't know where the issue is, but maybe if there's a string split on @, maybe make it a string split on the rightmost @ sign?

Most related to #5 but not.

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