We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ca2afaa commit 8dfbe8aCopy full SHA for 8dfbe8a
1 file changed
apps/sim/lib/copilot/tools/client/run-tool-execution.ts
@@ -356,9 +356,6 @@ async function reportCompletion(
356
headers: { 'Content-Type': 'application/json' },
357
body,
358
})
359
- // Next.js silently truncates request bodies beyond its body size limit (default 10MB),
360
- // corrupting the JSON and causing a server-side parse error (500). When the request fails
361
- // and the payload is large, retry without logs (the largest field) to fit under the limit.
362
const LARGE_PAYLOAD_THRESHOLD = 10 * 1024 * 1024
363
const bodySize = new Blob([body]).size
364
if (!res.ok && data && bodySize > LARGE_PAYLOAD_THRESHOLD) {
0 commit comments