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: 18 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.
-
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.
-
still here |
Beta Was this translation helpful? Give feedback.
-
still here... extremely annoying please solve this as soon as possible |
Beta Was this translation helpful? Give feedback.
-
Same here |
Beta Was this translation helpful? Give feedback.
Console logging just started working like 15 minutes later. Is there a delay sometimes?