Coder Social home page Coder Social logo

Comments (5)

GuillaumeTediber avatar GuillaumeTediber commented on May 25, 2024 1

Hello
@goetas @W0rma

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.

InjustFr avatar InjustFr commented on May 25, 2024 1

@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.

WissameMekhilef avatar WissameMekhilef commented on May 25, 2024

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.

SebastienTediber avatar SebastienTediber commented on May 25, 2024

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.

SebastienTediber avatar SebastienTediber commented on May 25, 2024

Hello again @InjustFr ,

We tried your solution and it works fine for us.

Thanks again

from fosrestbundle.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.