Include stack trace for unhandled exceptions on 500 responses and in job logs #11890

Open
opened 2025-12-29 21:51:16 +01:00 by adam · 0 comments
Owner

Originally created by @jeremystretch on GitHub (Dec 3, 2025).

NetBox version

v4.4.7

Feature type

Change to existing functionality

Proposed functionality

Currently, when dealing with an unhandled exception NetBox displays only the exception message. This FR proposes including the complete stack trace as well.

As the stack trace may be considered mildly sensitive due to the disclosure of file paths, we should sanitize file paths by omitting anything higher than the application's root path.

Use case

Stack traces are often necessary to expedite the troubleshooting process, and making these available to the user immediately is expected to simplify the bug reporting process for all parties.

Database changes

N/A

External dependencies

N/A

Originally created by @jeremystretch on GitHub (Dec 3, 2025). ### NetBox version v4.4.7 ### Feature type Change to existing functionality ### Proposed functionality Currently, when dealing with an unhandled exception NetBox displays only the exception message. This FR proposes including the complete stack trace as well. As the stack trace may be considered mildly sensitive due to the disclosure of file paths, we should sanitize file paths by omitting anything higher than the application's root path. ### Use case Stack traces are often necessary to expedite the troubleshooting process, and making these available to the user immediately is expected to simplify the bug reporting process for all parties. ### Database changes N/A ### External dependencies N/A
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#11890