postgres icon indicating copy to clipboard operation
postgres copied to clipboard

Cloudflare: I/O Error

Open zhihengGet opened this issue 1 year ago • 0 comments

Hi guys, i have been getting

Cannot perform I/O on behalf of a different request. I/O objects (such as streams, request/response bodies, and others) created in the context of one request handler cannot be accessed from a different request's handler. This is a limitation of Cloudflare Workers which allows us to improve overall performance."

how do u avoid this ? i have idle_timeout to zero, max_timeout to default, i create a new instance in sveltekit hook.server.ts

i feel like locals.sql=postgres( ) does not really create new instance

zhihengGet avatar May 31 '24 04:05 zhihengGet