amp html - Google AMP: Form submission failed:: Unexpected token < in JSON at position 1 -


i have added form using amp-form component , validates perfectly.

however, when submit form error:

log.js:399 uncaught syntaxerror: form submission failed:: unexpected token < in json @ position 1

any idea?

this isn't amp problem it's syntax error message states. json being sent/returned to/from server. sure you're sending/receiving think you're sending/receiving?

the error message me means you're not getting json, html. i've experienced error upon form submission via ajax , erroring out because server returning html message browser display, code expecting json returned.

look in debugger console @ being returned under network tab server. after locate network call in list under network tab, you'll select response tab (sub tab of network). guess response tab show nothing html, character in position 1 being ....... "<".

that html clue why it's failing well.

good luck, hope helps!


Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

javascript - IE9 error '$'is not defined -