Open nilooy opened 1 year ago
What is the error?
What is the error?
there's no error showing up it's just starts and under few ms it stops streaming (locally with same qstash it streams fully)
log ends here
it happens all at the same time, so i doubt if any streaming is actually happening.
is it perhaps cached by vercel? they have some really aggressive caching strategies
is it perhaps cached by vercel? they have some really aggressive caching strategies
i tried redeploying without cache on vercel, but no luck, i guess vercel edge function are not considering qstash as valid client for streaming. i tried without qstash, it ran fine.
Same problem here, any solution one year later?
i am trying to use vercel edge function's streaming with ai sdk (https://sdk.vercel.ai/docs/guides/openai) for long running job(up to 120s) with https://docs.upstash.com/qstash
it works perfectly locally but when deployed on vercel, it doesn't. it just stream for few milli seconds and stops. (no error) i'm not sure exactly where the issue is. At first glance seems like, the issue is on qstash but then it works locally and not in vercel, so it indicates that the issue might be there.
calling this to run queue:
the queue that run as background job
validateSignatureEdge.ts