Giter Site home page Giter Site logo

Comments (5)

fundead avatar fundead commented on May 24, 2024

Just to clarify, what is the file/line/class/method which the FatalErrorException is occurring on? You mention that it is included in the raw view but not in the prettyprinted view. Assuming the actual SendException call is occuring in ProductController? Also, is this object a subclass of ErrorException or Exception?

After inspecting this it looks like Laravel may be altering this process somehow. Are you sending it from an override of report() as at http://laravel.com/docs/5.1/errors#the-exception-handler?

from raygun4php.

CWSpear avatar CWSpear commented on May 24, 2024

In ProductController.php, I just had foo();, which I knew would error. The error was in ProductController.php:39. The raw view actually only had the file, and did not have the line anywhere. ProductController was not found anywhere on the pretty print page.

It's a subclass of Exception. Even if it is some special Exception subclass, it should (and does) still have the methods to get line and file.

I'm sending it as an override of handle, not report in the Exception Handler (tho report is probably more appropriate!). Either way, they both have type-checked \Exceptions passed in.

from raygun4php.

davesouthey avatar davesouthey commented on May 24, 2024

I am using Laravel 5.2 and am sending the exception in my override of report as referenced by @fundead but in Raygun I am not getting a stack trace or a line number. In this example the syntax error is actually in ContactController.php.

"Error": { "Message": "Symfony\\Component\\Debug\\Exception\\FatalErrorException: syntax error, unexpected 'if' (T_IF)", "ClassName": "Symfony\\Component\\Debug\\Exception\\FatalErrorException", "StackTrace": [], "FileName": "ContactController.php", "Data": null }

from raygun4php.

fundead avatar fundead commented on May 24, 2024

Thanks for providing this, that should be enough of a repro for us to locate the cause of the issue. This provider isn't immediately scheduled for a review due to other pressing work in the pipeline but I have added this to the queue and will look at resolving this for you when next possible.

from raygun4php.

mduncan26 avatar mduncan26 commented on May 24, 2024

Closing this issue for now. If you wish to see this issue addressed please create a new issue or post within our forums (https://raygun.com/forums). Thank you.

from raygun4php.

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.