FOSRestBundle icon indicating copy to clipboard operation
FOSRestBundle copied to clipboard

Error 404 FOS\RestBundle\Util\StopFormatListenerException

Open fabricek opened this issue 12 years ago • 1 comments

When i go to an inexistant page, the request send an error 500 not 404. Problem is in last version 1.5.0 but not in 1.4.2 and the symfony log show :


request.ERROR: Exception thrown when handling an exception (FOS\RestBundle\Util\StopFormatListenerException: Stopped format listener) {"exception":"[object] (Symfony\Component\HttpKernel\Exception\NotFoundHttpException: No route found for "GET /kl" at :\wamp\www\sylius\vendor\symfony\symfony\src\Symfony\Component\HttpKernel\EventListener\RouterListener.php:116, Symfony\Component\Routing\Exception\ResourceNotFoundException: None of the routers in the chain matched this request\nGET /kl ....

The problem appear since my fos/rest update. I downgraded to 1.4.2 and it's ok now but not for 1.5. I reproduced the issue on windows 7 and debian system with a Sylius sandbox. So it's not a windows issue. How can i solve it ? Is it an issue or a conf problem ?

fabricek avatar Nov 09 '14 00:11 fabricek

see #891

aitboudad avatar Nov 14 '14 10:11 aitboudad