Giter VIP home page Giter VIP logo

Comments (4)

oliver-kriska avatar oliver-kriska commented on June 18, 2024

I reported this issue. We don't see post requests in regular Controller and also Absinth GQL. But second one can be due to some config conflicts but regular Controller doesn't have anything special. Phoenix integration is configured exactly like is written in docs.

from sentry-elixir.

whatyouhide avatar whatyouhide commented on June 18, 2024

Hi @oliver-kriska, thank you for reporting this!

  1. I set up a brand new Phoenix application and added :sentry version 10.1.0.
  2. I added a POST route to the router
  3. The controller action to handle the newly-added POST route raises an error (just a raise "some error")

If I hit the new endpoint to trigger the error, the body is in the error in Sentry as expected:

curl -X POST -H 'Content-Type: application/json' 'http://localhost:4000/api/test' -d '{"foo": false}'

CleanShot 2024-01-18 at 12 48 43@2x

Troubleshooting

Could you help me troubleshoot this by telling me

  1. What your router looks like
  2. What your Phoenix endpoint looks like
  3. What your controller action looks like
  4. What the request you're issuing is

Thank you!

from sentry-elixir.

oliver-kriska avatar oliver-kriska commented on June 18, 2024

while I was writing you our code examples I figured out that issue is that we have json parser for API requests in router and not in endpoint. Thanks to that Sentry doesn't have parsed request's body. Sorry for taking your time.

from sentry-elixir.

whatyouhide avatar whatyouhide commented on June 18, 2024

No problem! Glad to hear this was solved 🙃

from sentry-elixir.

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.