like, when you parse it, how are you compressing it?
like, when you parse it, how are you compressing it?
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

s-max-age: {seconds} and my functions are cached, so my quota is not fully used..
s-max-age? or maxage?s-max-age)ApolloError: Unexpected token '<', "<html><hea"... is not valid JSONhttps://courses.techleaderslaunchpad.com/graphqlawait response.text()<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>POST https://sup.ai.moda/analyze - Canceled @ 12/29/2023, 5:56:24 PM
(log) <-- POST /analyze
(debug) cf-cache-status: HIT [PDF]
(debug) md5: 263b609960b7b33c154cf0607b207b73
(debug) cf-cache-status: HIT [JSON]
(log) --> POST /analyze 200 24mss-max-age: {seconds}s-max-ages-max-agemaxageconst 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')
);
// ...
}