Console.log's not working in Production on Vercel #21000
-
I am trying to debug a backend function in my app that is working fine in my lab but doesn't seem to be working in production. In my Vercel Dashboard, I'm not getting any errors or console.log's in my Functions log. According to this recent blog post, console.log's should show in the Functions log in the Vercel Dashboard. Am I missing some major import or dependency in production that would cause the function to fail spectacularly? I have Node installed globally on my local machine but I don't need to have Node as a dependency in my project for Vercel, do I? My function is below. It fetches an image based on a URL and then tries to upload the image to a Google Cloud Storage bucket. As you can see, I have lots of logging, but none of them show in the Vercel Dashboard.
|
Beta Was this translation helpful? Give feedback.
Replies: 35 comments 2 replies
-
Console logging just started working like 15 minutes later. Is there a delay sometimes? |
Beta Was this translation helpful? Give feedback.
-
I've also had issues where the logs don't show up for an uncertain amount of time. I wish there was some insight into this behavior. |
Beta Was this translation helpful? Give feedback.
-
Same here, not clear what's happening. Sometimes when there is an uncaught error, vercel seems to swallow all logs... few hours later, logs seems to be there again... not reliable! |
Beta Was this translation helpful? Give feedback.
-
@huozhi would it be possible to take a look? Thank you 🙏 |
Beta Was this translation helpful? Give feedback.
-
Same for me, no console.error(), no console.info() or console.log(); winston does not log anything either in Vercel. Sadly, this causes major issues due to inconsistency between local and Vercel environments with Postmark and serverless functions that suddenly stop execution. |
Beta Was this translation helpful? Give feedback.
-
The bug is here again. Had to deploy and make sure the "use cache" is unchecked and now it's working. |
Beta Was this translation helpful? Give feedback.
-
This bug is still present |
Beta Was this translation helpful? Give feedback.
-
please check this. |
Beta Was this translation helpful? Give feedback.
-
Encounter the same issue again |
Beta Was this translation helpful? Give feedback.
-
😭😭😭😭😭😭 |
Beta Was this translation helpful? Give feedback.
-
Experiencing this with Nuxt |
Beta Was this translation helpful? Give feedback.
-
still here. |
Beta Was this translation helpful? Give feedback.
-
still here |
Beta Was this translation helpful? Give feedback.
-
Still observed |
Beta Was this translation helpful? Give feedback.
-
Still here.... |
Beta Was this translation helpful? Give feedback.
-
Anyone found a solution to this issue? |
Beta Was this translation helpful? Give feedback.
-
Same to me. Did anyone find a solution? |
Beta Was this translation helpful? Give feedback.
-
Still here |
Beta Was this translation helpful? Give feedback.
-
Damn. Logging is a critical feature on any cloud infrastructure you know :) |
Beta Was this translation helpful? Give feedback.
-
Found two possible solutions to this: |
Beta Was this translation helpful? Give feedback.
-
still here in april 18 2025. |
Beta Was this translation helpful? Give feedback.
-
still here in may 8 2025 |
Beta Was this translation helpful? Give feedback.
-
12.5.2025 still here |
Beta Was this translation helpful? Give feedback.
-
still here |
Beta Was this translation helpful? Give feedback.
-
WTH ? Still here |
Beta Was this translation helpful? Give feedback.
-
still here |
Beta Was this translation helpful? Give feedback.
-
still here |
Beta Was this translation helpful? Give feedback.
-
huh. still here? |
Beta Was this translation helpful? Give feedback.
-
stll here, fr? |
Beta Was this translation helpful? Give feedback.
-
This is quite crippling. I can see logs of api route return statuses, but not |
Beta Was this translation helpful? Give feedback.
Console logging just started working like 15 minutes later. Is there a delay sometimes?