mailosaur / mailosaur-node

Mailosaur email and SMS testing library for Node.js
https://mailosaur.com/docs/languages/nodejs/
MIT License
20 stars 13 forks source link

Question: request to 34.149.187.159:443 #70

Closed MartinPilny closed 3 months ago

MartinPilny commented 3 months ago

Hello, I would like to know under which circumstances can mailosaur library send request to 34.149.187.159:443.

We noticed it during run of our Playwright test suite today, when one of tests failed on Error: connect ETIMEDOUT 34.149.187.159:443

due to our company new firewall rules.

Sample of code we use:

// ...

const mailosaurClient = new Mailosaur(mailosaurApiKey)
await mailosaurClient.messages.search(mailosaurServerId, criteria, options)

// ...

Versions: mailosaur-node: 8.6.1 playwright: 1.45.3

jm-mailosaur commented 3 months ago

This is the IP address of https://mailosaur.com and so will be called whenever an API call is made to the Mailosaur API. In your code sample there, it will be called when .search is invoked.

MartinPilny commented 3 months ago

but calling directly IP with port? It is weird, isn't it?

jm-mailosaur commented 3 months ago

Indeed it would be, our code does not call the IP address directly, you can see this in the source code and by searching this repo for any references to the IP address.

What you're seeing is Node.js or openssl itself outputting an error after a DNS lookup on the domain name.