Alex Furrier

08/06/2021, 5:02 PM
Running Prefect Server on K8s and the apollo server pod keeps crashing with this error message:
PayloadTooLargeError: request entity too large
    at readStream (/apollo/node_modules/raw-body/index.js:155:17)
    at getRawBody (/apollo/node_modules/raw-body/index.js:108:12)
    at read (/apollo/node_modules/body-parser/lib/read.js:77:3)
    at jsonParser (/apollo/node_modules/body-parser/lib/types/json.js:135:5)
    at Layer.handle [as handle_request] (/apollo/node_modules/express/lib/router/layer.js:95:5)
    at trim_prefix (/apollo/node_modules/express/lib/router/index.js:317:13)
    at /apollo/node_modules/express/lib/router/index.js:284:7
    at Function.process_params (/apollo/node_modules/express/lib/router/index.js:335:12)
    at next (/apollo/node_modules/express/lib/router/index.js:275:10)
    at cors (/apollo/node_modules/cors/lib/index.js:188:7)
Any idea where to start for debugging that?

Allyson Lubimir

08/06/2021, 6:01 PM
I'm seeing what I can find out from the team!
hi Alex! Apollo has a 1mb limit on requests, it looks like you might be sending something larger than that limit to the Prefect API -- it could be a huge log file, or a very large serialized flow. Does that sound like a possible culprit?