I/O error cloudflare
So this is because you're using the global scope (i.e, you're putting the request from one request in a global variable and then accessing it from a different request)
let pocketbase: PocketBase;
export async function GET() {
if(pocketbase == null) {
pocketbase = new PocketBase();
}
}