Git Product home page Git Product logo

Comments (3)

stayallive avatar stayallive commented on June 20, 2024

This is most likely because either you have a lot of information in the event (huge stacktrace, many breadcrumbs, lot's of context) and you might alreay be memory constraint which results in the application running out of memory when trying to send the event to Sentry.

Part of sending the event to Sentry is gzipping the event data since the Sentry server only accepts payloads below a certain size and the gzipping helps with staying below that limit and speeding up the network transfer too. It can be disabled by setting enable_compression to false in the SDK options, however I would suggest to be careful since that could have uninteded side effects where events might be dropped because they exceed the size accepted by Sentry.

Have you tried to reproduce the event being sent and see what data is contained within and if it might be excessively large?

from sentry-php.

chrisc0 avatar chrisc0 commented on June 20, 2024

How do I see what data is in the event?
Also, I tried adding another 25MB to the server but I'm still getting the error. The frustrating part is that if I disable Sentry, my application runs just fine. Sentry itself seems to be causing the problem here.

from sentry-php.

stayallive avatar stayallive commented on June 20, 2024

You can use the before_send option to get the Event instance we would transmit to Sentry: https://docs.sentry.io/platforms/php/configuration/filtering/#using-platformidentifier-namebefore-send-

Since you are not using a framework it's a little tricky considering what would be in those events since you implemented them yourself it would be interesting if you can pinpoint the exact problem event to see if there might be some kind of recursive issue or if there is something interesting on the request where the problem is being triggered, like if it is a POST request with a large payload. If it's not a manually triggered event it's most likely a PHP Error like a NOTICE or WARNING (or many of them) being (attempted) to sent to Sentry.

from sentry-php.

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.