There was an error while loading. Please reload this page.
1 parent f39c0fd commit 38a86e0Copy full SHA for 38a86e0
1 file changed
apps/sim/tools/index.ts
@@ -2692,7 +2692,13 @@ async function executeDeclaredInternalOperation({
2692
try {
2693
stringifyRequestWithinLimit(operationInput, MAX_REQUEST_BODY_SIZE_BYTES)
2694
} catch (error) {
2695
- if (isPayloadSizeLimitError(error)) throw new Error(BODY_SIZE_LIMIT_ERROR_MESSAGE)
+ if (isPayloadSizeLimitError(error)) {
2696
+ logger.error(`[${requestId}] Request body size exceeds limit for ${toolId}:`, {
2697
+ bodySizeLowerBound: error.observedBytes,
2698
+ maxSize: error.maxBytes,
2699
+ })
2700
+ throw new Error(BODY_SIZE_LIMIT_ERROR_MESSAGE)
2701
+ }
2702
throw error
2703
}
2704
const deadline = serializeExecutionDeadlineHeader(signal)
0 commit comments