Open lordanubi opened 10 months ago
Seems like I creating another Deno project connected to my first KV database is the only way to circumvent the problem
No luck even by doing this :(
I even tried to directly connect to my db in nodejs but I get this error on my cloudflare worker
Any idea on how could i prevent this? Can you change how the loop is detected in deno deploy please? That would help a lot!
Hello I'm having some problems when deploying a script that locally was working perfectly. Since I needed some Vercel AI utiliities to deal with OpenAI streaming API which only works on Node.js, I had to set up an external worker on cloudflare that takes care of the streaming. This is my workflow:
Deno api endpoint /generate
The cloudflare worker will make the request to OpenAI, stream the response back to Deno and finally it needs to save the generation on Deno database so it will send a fetch request to a Deno api endpoint /saveposts)
Now for some reasons this request to deno server fails with this error: 508: Loop Detected (LOOP_DETECTED) Recursive requests to the same deployment cannot be processed.
Why is this perceived as a loop while it isn't? Shouldn't this error be triggered with at least 2 or 3 more callbacks?