Theo's Typesafe CultTTC
Theo's Typesafe Cult3y ago
1 reply
s☻d

Vercel Lambda 405/413 error (large payload)

I have a api route which can potentially return a large amount of data back depending on who calls it, this occasionally leads to a 413/405 error: [ERROR] [1688280447665] LAMBDA_RUNTIME Failed to post handler success response. Http response code: 413.

My route currently has
export const config = {
    api: {
        responseLimit: '8mb',
    },
}

But I am unsure that is really doing anything to help/adverse the situation.
Was this page helpful?