Giter VIP home page Giter VIP logo

Comments (7)

olmobrutall avatar olmobrutall commented on June 12, 2024

I can give you some hint:

The RestLogFilter replaces the Reponse.Body from the default 'stream to http directly' to a buffered memory stream so we can save the result in request.ResponseBody =.

For some reason looks like context.HttpContext.Items[OriginalResponseStreamKey] is not found.

Maybe OnActionExecuting didn't execute?

from framework.

olmobrutall avatar olmobrutall commented on June 12, 2024

Hi @ce-kkoziel any progress with this?

from framework.

ce-kkoziel avatar ce-kkoziel commented on June 12, 2024

Hi @olmobrutall. You are right, I discover OnActionExecuting was not executed. But it means RestLogFilter does not handle requests which do not match to endpoint requirements (ModelState is invalid). Instead of that behavior it generates Exception like in issue. Currently, framework do not allow to log any info about rejected requests on model validation stage.

from framework.

olmobrutall avatar olmobrutall commented on June 12, 2024

Currently I think CE are the only using RestLogAttribute.

since looks like you can reproduce the problem, feel free to change it to fix the current behavior.

from framework.

ce-kkoziel avatar ce-kkoziel commented on June 12, 2024

If I had a permissions to push new branch with my fix I would make a pull request with my changes.

from framework.

olmobrutall avatar olmobrutall commented on June 12, 2024

Permission from who? You can fork framework repo, push to you cloned repo and make PR from there

from framework.

ce-kkoziel avatar ce-kkoziel commented on June 12, 2024

Ok, great! I will try to do in this way. :)

from framework.

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.