Logs not showing in node.js express app
mrm
TRIALOP

2 years ago

I've deployed a node.js express app and it shows the logs while deploying but not when a request is sent to any route of the app i.e. this segment does not log onto the dashboard

server.post("/testing", (req, res) => { 
    console.log("TESTING LOG")
});

https://i.ibb.co/d6GsFns/image.png

9 Replies

2 years ago

From these logs, the app is no longer running, it was likely killed because it tried to use more memory than the trial plan allows for, try again once you are on the Hobby plan.


mrm
TRIALOP

2 years ago

my apologies I had switch to runtime Legacy, the app seems to be working now but still no logs


2 years ago

Try again once you are on the Hobby plan.


mrm
TRIALOP

2 years ago

I'm not quite sure about the hobby plan, it says I'm on trial plan

Attachments


2 years ago

You need to upgrade to the Hobby plan.


mrm
TRIALOP

2 years ago

does it not show logs in trial plan?


2 years ago

That is not what I mean, your app has previously crashed from resource limitations, you need to upgrade to the Hobby plan to prevent that from happening again.


mrm
TRIALOP

2 years ago

I don't understand how that's possible? I haven't sent that many network requests nor has it consumed cpu/memory usage

Attachments


2 years ago

There can be spikes to 500MB that you can not see on that graph, please let me know when you are on the Hobby plan and we can continue to debug.


Loading...