I have successfully created a couple of forms in /contatti and /newsletter paths, the site is built on nextjs.
I was receiving submissions correctly until october 31st. Since yesterday (November 1st) any submission will crash the application with this message:
This function has crashed
An unhandled error in the function code triggered the following message:
2023-11-02T17:28:23.980Z 26ba803c-3559-44a9-ba53-7d4b5243773f Task timed out after 10.02 seconds
Unfortunatelly I have been unable to find a solution for this. Its only a couple of very simple forms that were working perfectly until a few days ago. Any other suggestions?
Hello and thanks for the reply.
What you are seeing is an older version of the site which uses client side react (for testing purposes). The forms work fine in this version. The issue I posted about was with a newer version of the same site, built on Nextjs using SSR. The SSR function timeouts started happening after November the 1st for some reason without any code changes on my behalf. I have since migrated my forms to formspree with no issues whatsoever. I would obviously prefer to use the netlify native form functionality If the issue has been fixed.
I was struggling to solve this issue as well with Next.js 14 on app router, but solved it.
Create a not dynamic route containing only the static HTML for the form. So I created a route “fakeform” with a page.tsx inside containing a basic HTML form including data-netlify=“true” attribute.
Now Netlify will pick up the form, and submitting from inside a react component also works.