Comments (5)
Do you have any ideas in how to use fos_rest error caching functionnality for version 3.X.X ?
This would help us a lot.
Thank you,
Guillaume Bidan
CTO
Tediber
from fosrestbundle.
@SebastienTediber I think your configuration needs an update. Mine is working fine, here it is (the exception part):
fos_rest:
exception:
map_exception_codes: true
codes:
'InvalidArgumentException': 422
'Doctrine\ORM\EntityNotFoundException': 404
messages:
'InvalidArgumentException': true
'Doctrine\ORM\EntityNotFoundException': true
You also have to set exception_controller to null in twig.yaml, if you're using twig
from fosrestbundle.
Hi!
I have also been facing this issue, trying to clean up the log output to focus on what matter and having uncaught exception is making it harder.
from fosrestbundle.
Hello @InjustFr,
We investigated the issue further and came upon a Twig issue too indeed, that we fixed differently. I will look into what you propose though because it looks better than our solution.
Thanks
from fosrestbundle.
Hello again @InjustFr ,
We tried your solution and it works fine for us.
Thanks again
from fosrestbundle.
Related Issues (20)
- Do not tag "RequestBodyParamConverter" as final.
- Invalid configuration for path "fos_rest.routing_loader": only "false" is supported HOT 3
- Make FlattenExceptionHandler/FlattenExceptionNormalizer extensible
- Unwanted magic: converter fos_rest.request_body retrive the actualy entity from database?!
- Naive implementation of RequestBodyParamConverterwith POST... or it's just my bad?
- It's not possible to customize HTTP status code for failed validation HOT 7
- symfony/serializer 6.1 use NormalizerInterface instead. HOT 1
- The service ".service_locator.4yDV6ZJ" has a dependency on a non-existent service "FOS\RestBundle\View\ViewHandlerInterface" HOT 1
- Dependency on abandoned sensio/framework-extra-bundle HOT 3
- Exception serializer not been called
- Symfony 6.3 annotation issue HOT 4
- Disable exception stack trace HOT 1
- Deprecation warning after updating Symfony from version 6.2 to 6.3 HOT 2
- Configuration: Route FosRest and Attributes HOT 2
- Symfony 6.4 adds `@final` annotation to Route annotation/attribute class HOT 5
- Best way to learn FOSRestBundle API
- Symfony 7 dont support FOSRestBundle HOT 2
- NotAcceptableHttpException - No matching accepted Response format could be determined
- FOSRest namespace is not defined and argument #2 must be of type array HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fosrestbundle.