2 years ago
Hello everybody, I have this function that works perfectly fine on my local environment, but for some reason it doesn't here on railway: I have this webhook that receives data and pass it to a class that could take up to 20minutes to process data, like this:
Webhook.js -> Utility.js
Problem is, the execution terminates inside Utility.js (without any errors) without passing back the control to Webhook.js, I suppose it's a container/ resource problem (I'm on hobby with 50 dollars of credit), it really preventing me to use my project. Any hints? Thanks
56 Replies
2 years ago
do you have a container died event in your logs?
2 years ago
then if you didn't get one while your app stopped the app didn't exit
2 years ago
that's you initializing it
2 years ago
are you aware of the resource limits of the Hobby plan?
2 years ago
you can look at the metrics, but your application may have had a resource spike that happened faster than we could have caught
2 years ago
what's the max memory that it uses locally?
2 years ago
yes please
2 years ago
you can always upgrade to pro and If that doesn't solve your problem I'd be happy to refund
2 years ago
nope it would have to be a card, but we can transfer credits over after the fact for you
2 years ago
you would need to use a card to purchase pro
this is the benchmark as stated here: https://nodejs.org/en/learn/getting-started/profiling
By the way I've DMed you, we can talk better there I think, I'll upgrade, no problem
2 years ago
sorry but we don't offer support over DMs
2 years ago
can you give me a rundown of that file? what was the max memory your app uses?
2 years ago
zsh is a shell?
2 years ago
what does 47426 mean in this context?
2 years ago
well isn't this idle usage?
2 years ago
but at the same time, there's no way an idle node app is only using 2.8mb, are you sure that's not the memory usage of zsh itself
At this point it's should be helpfull to check the logs inside the container
2 years ago
we ship all the deployment logs your app prints out to deploy logs tab
2 years ago
if you think this is a memory issue, yep!
2 years ago
if you don't think it's memory, I would recommend adding more verbose logging to your app
2 years ago
sounds good
Hi! I re-deployed the env variables a couple of times and it worked, thanks!
2 years ago
awsome

