Brikl / opensource

Open source monorepo by BRIKL
MIT License
10 stars 5 forks source link

netlify-plugin-next-dynamic: 404 on Netlify Form submit #8

Open jadbox opened 3 years ago

jadbox commented 3 years ago

On submitting an ajax form to Netlify Forms, I'm getting a 404 page being served. I have no special _redirects rules either.

curl 'https://beta.dfame.app/' \
  -H 'user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.66 Safari/537.36' \
  -H 'content-type: application/x-www-form-urlencoded' \
  -H 'referer: https://beta.dfame.app/' \
  -H 'accept-language: en-US,en;q=0.9' \
  -H 'cookie: _gid=GA1.2.1550095432.1605983334; _ga=GA1.1.1307560562.1605983334; _ga_37514942YF=GS1.1.1606014014.5.1.1606017875.0' \
  --data-raw 'form-name=tppCreate&email=a%40az.com&url=demo.ghost.io&address=&balance=1' \
  --compressed
rayriffy commented 3 years ago

Hi, sorry for letting this issue very old. Is your Netlify forms are submitted by calling POST request yes? I'm trying to narrow down scope atm. . And I just tried your app, does the final protected url are being stored in Netlify Forms or it being served from another database?

jadbox commented 3 years ago

If it helps, I also noticed that _redirects file also doesn't seem to work with this plugin enabled.