Google AMP: Error submitting form :: Unexpected token <in JSON at position 1

I added the form using the amp-form component, and it works great.

However, when I submit the form, I get an error:

log.js: 399 Uncaught SyntaxError: Error submitting form :: Unexpected token <in JSON at position 1

Any idea?

0
source share
1 answer

This is not an AMP problem, it is a syntax error, as indicated in the message. What looks like JSON, is sent / returned to / from the server. Are you sure you send / receive what you think you send / receive?

, JSON, HTML. AJAX, , HTML- , JSON.

, "" . , , ( ). , , HTML, 1 ....... "<".

HTML, , , .

, , !

+2

Source: https://habr.com/ru/post/1665007/


All Articles