php - Symfony 419 status error on AJAX form post
one text
Solution:
Okay found the issue, I didn't notice that I set status to 419 on Try Catch catch block so thought it was about Symfony or client side. After doing some debugging I get "An error has occurred resolving the options of the form "App\Form\SiparisType": The required option "firma" is missing." error which is caused by
SiparisConroller.php
$form = $this->createForm(SiparisType::class, $siparis);
This line in save_siparis() function. In SiparisType I have set 'firma' field as required SiparisType.php
$resolver->setRequired(['firma']);
Therefore I got an error in Try Catch block.
Thanks to @jean-max for his advice to check Try Catch.
Source