It would be more helpful if you can share function logs (from Netlify’s dashboard) for failed requests. For now you can check for possible causes, like the ones below:
Next.js API routes on Netlify run as serverless functions, which may experience cold starts. If your API takes longer than 10 seconds (Netlify’s default timeout), it’ll fail. So you can try increasing the timeout in netlify.tml
Netlify functions have memory constraints (e.g., 1GB on the free tier). Heavy processing can cause crashes. You can debug this by checking function logs in Netlify Dashboard > Functions for Out of Memory errors.
Hi Sid, Thank you very much forwarding the request to the helpdesk, I don’t suppose you know whether or not they have managed to take a look? We receive a lot more failed requests this morning resulting in an outage on our platform. If you have any further information that could help, please could you forward to Nontachai. Kind Regards, Rich