Deep-email-validator stopped working on production in express

I’m using deep-email-validator npm package to validate emails. Yesterday it was working on render while I deployed my app, and very surprisingly now it’s not working all of a sudden. Checked server logs and got the following error:

{"valid":false,"validators":{"regex":{"valid":true},"typo":{"valid":true},"disposable":{"valid":true},"mx":{"valid":true},"smtp":{"valid":false,"reason":{"code":"ETIMEDOUT"}}},"reason":"smtp"}

Digging deep, I found out that the package uses port 25 for smtp server

16. const socket = net.createConnection(25, exchange)

Can this be the issue for deep email validation? Because the package works fine on local

Hey,

Port 25 is restricted by AWS, so sending a request over it won’t work. You’ll need to use a different port or consider using another package.

Jérémy.
Render Support, UTC+3

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.