Most of the errors around scripts never returning a response or promises never completing means ther
Most of the errors around scripts never returning a response or promises never completing means there’s stuff being used in the global scope

next-on-pages for; it has an api that gets deployed to workers that calls a graphql endpoint. it works fine locally, and using wrangler, but when deployed i get an error ApolloError: Unexpected token '<', "<html><hea"... is not valid JSONhttps://courses.techleaderslaunchpad.com/graphqlawait response.text() says.
<html><head><link rel="icon" href="data:;"><meta http-equiv="refresh" content="0;/.well-known/sgcaptcha/?r=%2Fgraphql&y=ipr:2a06:98c0:3600::103:1703826118.917"></meta></head></html> bny doing the raw fetch thing. now to work out how to get my hosting provider to turn that off✘ [ERROR] *** Received signal #11: Segmentation fault: 11
stack:
✘ [ERROR] Error in ProxyController: Error inside ProxyWorker
{
name: 'Error',
message: 'Network connection lost.',
stack: 'Error: Network connection lost.'
}next-on-pagesApolloError: Unexpected token '<', "<html><hea"... is not valid JSONhttps://courses.techleaderslaunchpad.com/graphql<html><head><link rel="icon" href="data:;"><meta http-equiv="refresh" content="0;/.well-known/sgcaptcha/?r=%2Fgraphql&y=ipr:2a06:98c0:3600::103:1703826118.917"></meta></head></html>const operation_json = await operation_result.json() as any;
if(operation_json.result === "win") {
const filename = cacheKey.pathname.split("/").pop() ?? "undefined.pdf";
const filename_json = filename.replace(/\.[^/.]+$/, "") + ".json";
const operation_json_str = JSON.stringify(operation_json, null, 2);
const custom_res = new Response(operation_json_str);
const compressedReadableStream = custom_res.body!.pipeThrough(
new CompressionStream('gzip')
);
// ...
}