-
Notifications
You must be signed in to change notification settings - Fork 778
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to send a mail in production but in developement everything is fine #1156
Comments
Hello @dbonattoj, This does not appear to be an issue with the helper library. I think your initial thought of the error being caused by a proxy issue with your production server may be correct. Can you please confirm with the server admin? This StackOverflow question might help withe debugging also. With best regards, Elmer |
From the log, it seems that it is doing a POST request to https://api.sendgrid.com/. I'm also doing POST request to other services without issues, I'm not so sure it is the real problem here. At least a more meaningful help message would be interesting, because ECONNRESET can say anything in this context. From the source code (https://github.com/sendgrid/sendgrid-nodejs/blob/master/packages/client/src/classes/client.js) I see that you are using Axios to make the POST requests, However, my others Axios requests work properly, I will dig in that direction anyway. The server at the moment is not using https, could that be an issue? |
Can you please try making a hello world API call via cURL from your server?
I think so, trying the cURL command above may help us further pinpoint where the issue resides. |
I receive a
After a Do I need to open it in/out? We have very strict policies on open ports Are some other usual ports needed for using Sendgrid? |
Apparently, even with the 443 open, I guess I will need to use another service or find out how to send smtp mails in javascript. |
I suggest that you (or the admin of your server) reach out to our support team with a link to this GitHub issue for further assistance. The issue appears to be network related vs. helper library related, so I will close the issue here. Thanks! |
Issue Summary
In localhost I can send mails without any issues, while when the website is pushed into production, I receive a ECONNRESET error..
Code Snippet
Exception/Log
Technical details:
I think it is a proxy problem, but I don't know how to solve it, I only found some information in java and they don't seems to work here sendgrid/sendgrid-java#182
Thanks
The text was updated successfully, but these errors were encountered: