-
-
Notifications
You must be signed in to change notification settings - Fork 579
Error Trace Doesn't Include Stack Trace #1904
Comments
Looks like v1.14.3 removed the stack traces: https://gobuffalo.io/en/docs/release-notes/buffalo/v0143#removing-stack-traces-from-errors |
It's a shame it's been removed. I did find it quite helpful. Definitely not helpful now is the misleading documentation and having error and trace be the same value. |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
This issue was closed because it has been stalled for 5 days with no activity. |
This makes the framework almost unusable. I tried to use pop relationships at the same time as buffalo-auth: gobuffalo/buffalo-auth#83 - everything was working fine for hours, as i didn't try to test buffalo-auth again until later. When I tried to signup through buffalo-auth and it no longer worked, I rooted around for hours trying to figure out what the problem was. I would have been able to figure it out pretty quickly with a stack trace. I don't think you can expect someone to use multiple packages within the same program they are building without a stack trace in the error message. |
This really needs to be fixed. This makes the framework essentially a pain to debug. |
Thanks all for filing an issue and commenting.
Indeed, the document is not solid and also outdated. We previously removed the feature since the stack trace does not provide meaningful information if the user application or the function making errors are not written with the consideration of tracing, but just makes the output verbose. However, we are still providing stack traces for panic cases. See the historical PRs below: [1] #138 However, providing a stack trace for internal errors (even if they are not a panic) could be nice, so I agree that this issue is still valid.
But this is not the case that stack trace helps us. 404 is clear with itself, we don't need a stack trace for it. I am preparing a PR for this issue (actually as a next step of #2352) but the 4xx errors are not in scope. Please let me know if you have ideas about it, with detailed explanations and samples if it is possible. |
See #2361 for the current status of this feature. Briefly,
|
Description
The documentation on Error Handling indicates there should be a stack trace, but stack traces are no longer returned.
Steps to Reproduce the Problem
buffalo new coke
cd coke
buffalo dev &
curl -H 'Content-Type: application/json' 'http://localhost:3000/does_not_exist'
Expected Behavior
trace
anderror
should not be the same.trace
should have the stack trace.Actual Behavior
{"error":"could not find does_not_exist","trace":"could not find does_not_exist","code":404}
Info
Please run
buffalo info
and paste the information below where it says "PASTE_HERE".The text was updated successfully, but these errors were encountered: