Comments (5)
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.
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 \Exception
s passed in.
from raygun4php.
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.
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.
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)
- Continue logging errors locally to error_log
- Issues when bundled in a phar archive HOT 4
- Use Guzzle instead of cURL HOT 1
- Add error bundling to help deal with high traffic
- JSON schema HOT 1
- Invalid characters passed for attempted conversion HOT 5
- "Couldn't send asynchronously" error HOT 2
- Deprecated: Invalid characters passed for attempted conversion, these have been ignored HOT 2
- Exclusion of sensitive data HOT 10
- UTF-8 encoding not working
- UTF-8 encoding not working on v1.8 for php 5.3+ HOT 3
- Exclude all form data HOT 2
- Provide a way to filter out IpAddress
- Raygun doesn't actually report the file name and line number of the actual error, which is the most important part. HOT 5
- Incorrect no. params passed to ErrorException HOT 3
- escapeshellarg(): Input string contains NULL bytes HOT 1
- Potential breaking change for rhumsaa/uuid HOT 2
- Illegal string offset in PHP7.1 HOT 1
- iconv(): Detected an illegal character in input string HOT 3
- Errors sent with SendError don't look similar to SendException
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from raygun4php.