Middleware to intercept server errors related to installation issues #1375

Closed
opened 2025-12-29 16:31:54 +01:00 by adam · 1 comment
Owner

Originally created by @jeremystretch on GitHub (Nov 2, 2017).

Issue type

[x] Feature request
[ ] Bug report
[ ] Documentation

Environment

  • Python version: 3.5.2
  • NetBox version: 2.2.4

Description

It may be worthwhile to implement a lightweight middleware to intercept common exceptions related to installation issues. For example, a ProgrammingError typically indicates that database migrations have not been applied following an upgrade. Returning hints at possible solutions to the user would help shorten the support cycle and cut down on invalid bug reports.

Originally created by @jeremystretch on GitHub (Nov 2, 2017). ### Issue type [x] Feature request <!-- Requesting the implementation of a new feature --> [ ] Bug report <!-- Reporting unexpected or erroneous behavior --> [ ] Documentation <!-- Proposing a modification to the documentation --> ### Environment * Python version: 3.5.2 * NetBox version: 2.2.4 ### Description It may be worthwhile to implement a lightweight middleware to intercept common exceptions related to installation issues. For example, a `ProgrammingError` typically indicates that database migrations have not been applied following an upgrade. Returning hints at possible solutions to the user would help shorten the support cycle and cut down on invalid bug reports.
adam added the type: feature label 2025-12-29 16:31:54 +01:00
adam closed this issue 2025-12-29 16:31:54 +01:00
Author
Owner

@lampwins commented on GitHub (Nov 2, 2017):

I think you are on the right track. I have seem somewhat similar things done with https://docs.djangoproject.com/en/1.11/topics/http/middleware/#process-exception

@lampwins commented on GitHub (Nov 2, 2017): I think you are on the right track. I have seem somewhat similar things done with https://docs.djangoproject.com/en/1.11/topics/http/middleware/#process-exception
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#1375