console.log calls not showing up in Vercel runtime logs, when streaming edge function runs longer

To allow an next.js edge function run for longer than 30 seconds, we stream its output. There is a weird issue where console.log calls don't show up in the Vercel runtime log dashboard, if the edge functions runs for more than ~17 seconds. I've tested it with a new next.js app, using the latest next.js version and this route handler: https://gist.github.com/csshsh/f2d35919b533fb2a9e64865a662dd914 Any idea what might be causing this and how to resolve it? Vercel support unfortunately has been non-existant
2 Replies
csshsh
csshsh14mo ago
It seems like logs are also missing for any response that takes longer than ~17 seconds.. also if it's not streaming. For example this one: https://gist.github.com/csshsh/b5a4b00bf761e886ac5fd1418dbffa23
jamiedubs
jamiedubs14mo ago
here's a test repository for this for anyone else following along https://github.com/glifxyz/missing-vercel-logs
Want results from more Discord servers?
Add your server