question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[FEATURE REQUEST] Correct stack trace of a guard error in request errored pino-http's log

See original GitHub issue

The problem I am facing is similar to those described in this feature request. Despite after using LoggerErrorInterceptor I am getting the correct stack trace of errors thrown from controllers or services when an error is thrown from a guard, it behaves like LoggerErrorInterceptor was not used.

Describe the solution you’d like I am not sure if it is a bug or if additional functionality to be added. Probably this problem is caused by Interceptor not being called at all when application flow is broken on a guard level.

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:1
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
artursudnikcommented, Sep 5, 2022

@iamolegga I apologize for the delay. Here is this problem reproduced: https://github.com/artursudnik/nestjs-pino-issue.

0reactions
iamoleggacommented, Dec 20, 2022

Wouldn’t an exception filter be a better fit for this?

agree, we need to change this class to a filter and add tests to verify that it correctly catches and logs errors from different layers

Read more comments on GitHub >

github_iconTop Results From Across the Web

[FEATURE REQUEST] Correct stack trace in `request errored ...
By following #416 we now log the exception message. But it would be super helpful to log the actual stack trace there as...
Read more >
Java Stack Trace: How to Read and Understand to Debug Code
A stack trace shows the call stack (sets of active stack frames) and provides information on the methods that your code called.
Read more >
Making stack traces more useful with symbolication - Bugsnag
When debugging errors, symbolicated stack traces are essential because they provide visibility into where the errors originated in the code.
Read more >
Stack trace - Wikipedia
In computing, a stack trace is a report of the active stack frames at a certain point in time during the execution of...
Read more >
Error Handling - http4s
ParsingFailure : indicative of a malformed HTTP message in the request line ... syntax errors or missing fields, including a full stack trace,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found