Submission form got blank data

I’m use Gatsby + submission form, but everytime submit I got empty data.

My site: https://5fd25bf8bc42b60007662cc0--code-phe-blog.netlify.app, my testing URL: https://5fd25bf8bc42b60007662cc0--code-phe-blog.netlify.app/testing. I also use custom domain quantran.dev, I have tried to submit from both but it still got empty data.

The better the post - the faster the answer.

CURL:

curl 'https://5fd25bf8bc42b60007662cc0--code-phe-blog.netlify.app/' \

-H ‘authority: 5fd25bf8bc42b60007662cc0–code-phe-blog.netlify.app’
-H ‘pragma: no-cache’
-H ‘cache-control: no-cache’
-H ‘user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 11_0_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36’
-H ‘dnt: 1’
-H ‘content-type: application/x-www-form-urlencoded’
-H ‘accept: /
-H ‘origin: https://5fd25bf8bc42b60007662cc0--code-phe-blog.netlify.app
-H ‘sec-fetch-site: same-origin’
-H ‘sec-fetch-mode: cors’
-H ‘sec-fetch-dest: empty’
-H ‘referer: https://5fd25bf8bc42b60007662cc0--code-phe-blog.netlify.app/testing/
-H ‘accept-language: en,vi;q=0.9,en-US;q=0.8,en-AU;q=0.7’
–data-raw ‘form-name=contact&name=Single&email=testing%40gmail.com&message=ssss’
–compressed

I also try request on Postman. Can you please help me? Thank you.

Hiya, sorry you are having trouble getting your forms to work.

This Support Guide is the first port of call to debug any forms issues. There are also many other Support Guides for forms - you can find them here: #Netlify-support:support-guides

We also recommend trying to search the forums or look at topics tagged Netlify forms if you haven’t already - it’s likely your question was already asked by someone else!

If you are still having problems, please provide more information such as what you have already tried, and a link to your live form. :slight_smile:

I tried to add name="contact" data-netlify="true" to my form and it work perfect. I don’t know why Netlify need name, data-netlify because i use fetch only?

Ok got it, still need name. And last thing, I think Form Handling with a Stateful React Form in this post is old of date. They code didn’t have name. (https://www.netlify.com/blog/2017/07/20/how-to-integrate-netlifys-form-handling-in-a-react-app/)