Logs not showing in node.js express app

mrmTRIAL

10 months 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

10 months 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.


mrmTRIAL

10 months ago

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


10 months ago

Try again once you are on the Hobby plan.


mrmTRIAL

10 months ago

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

Attachments


10 months ago

You need to upgrade to the Hobby plan.


mrmTRIAL

10 months ago

does it not show logs in trial plan?


10 months 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.


mrmTRIAL

10 months 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


10 months 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.