Service crashing

Hi. I'm using nodemailer to send email. It works fine on localhost but when i deployed on Railway so it stop working? I still couldn't find out why. Does Railway block the port 465 & 587?
Solution:
that looks like you ran out of memory, the trial plan only has 512mb of ram, so upgrade to the dev plan for access to 8gb of memory!
Jump to solution
33 Replies
Percy
Percy2y ago
Project ID: N/A
nguyenha4802
nguyenha4802OP2y ago
N/A
Brody
Brody2y ago
well first, are there any error messages?
nguyenha4802
nguyenha4802OP2y ago
there are no error message
Brody
Brody2y ago
I'm gonna need error messages to help you debug this, if something is not working but there's no error messages, it means you aren't logging errors
nguyenha4802
nguyenha4802OP2y ago
do you mean this?
Solution
Brody
Brody2y ago
that looks like you ran out of memory, the trial plan only has 512mb of ram, so upgrade to the dev plan for access to 8gb of memory!
Adam
Adam2y ago
a service can only expose one port
nguyenha4802
nguyenha4802OP2y ago
I want to upgrade to the dev plan. But wonder that will it support nodemailer?
Brody
Brody2y ago
you can't run a mail server regardless of the plan, but you can definitely send mail with nodemailer
nguyenha4802
nguyenha4802OP2y ago
here is my email sending not sure why it is not sending email?
Brody
Brody2y ago
do you still see this when trying to send the email?
Brody
Brody2y ago
if you are still seeing those logs then this is still applicable https://discord.com/channels/713503345364697088/1121328957170655323/1121338140976762940
nguyenha4802
nguyenha4802OP2y ago
no it is working but i got this
Brody
Brody2y ago
looks like you got your credentials wrong are you storing the credentials in the railway service variables?
nguyenha4802
nguyenha4802OP2y ago
yes i store it in service variables
Brody
Brody2y ago
can I see a screenshot of the service variables please
nguyenha4802
nguyenha4802OP2y ago
Brody
Brody2y ago
okay and show me how you are using them in code?
nguyenha4802
nguyenha4802OP2y ago
it's store in my .env
nguyenha4802
nguyenha4802OP2y ago
nguyenha4802
nguyenha4802OP2y ago
and it works here
nguyenha4802
nguyenha4802OP2y ago
nguyenha4802
nguyenha4802OP2y ago
by this i'm creating an url to send verify link to customer
Brody
Brody2y ago
have you tried logging those two environment variables when in railway?
nguyenha4802
nguyenha4802OP2y ago
yes
Brody
Brody2y ago
and? bruh did you just send me your Gmail password
nguyenha4802
nguyenha4802OP2y ago
its just a test gmail not really worry it's an app password
Brody
Brody2y ago
well nodemailer said your credentials are incorrect are you sure you are using nodemailer correctly
nguyenha4802
nguyenha4802OP2y ago
acctualy i tried to deployed on other platform and it's working i'm not sure why in Railway not working wait in this case i need to use gmail password or an app password?
Brody
Brody2y ago
I'm not sure also Gmail itself could be blocking your login attempt, that's a possibility whatever the issue, railway itself is not blocking you from sending emails, I promise you that much
nguyenha4802
nguyenha4802OP2y ago
ok let me find out the solution
Brody
Brody2y ago
sounds good!
Want results from more Discord servers?
Add your server