Add a built-in webhook listener to aid in troubleshooting #3547

Closed
opened 2025-12-29 18:29:48 +01:00 by adam · 0 comments
Owner

Originally created by @jeremystretch on GitHub (Apr 7, 2020).

Originally assigned to: @jeremystretch on GitHub.

Environment

  • Python version: 3.6.9
  • NetBox version: 2.7.11

Proposed Functionality

Add a new management command that will initialize a simple HTTP daemon and print to terminal all received HTTP requests. For example:

$ python manage.py webhook_receiver 0.0.0.0:9000
Listening on 0.0.0.0:9000...
[1] Received request from 192.0.2.48
  Type: POST
  Headers: <...>
  Body: <...>

Use Case

It can be difficult to troubleshoot webhooks, especially when writing custom header/body templates. Introducing a local service to dump received requests allows a user to perform local troubleshooting by pointing a webhook to the local host on the specified port.

Database Changes

None

External Dependencies

None

Originally created by @jeremystretch on GitHub (Apr 7, 2020). Originally assigned to: @jeremystretch on GitHub. ### Environment * Python version: 3.6.9 * NetBox version: 2.7.11 ### Proposed Functionality Add a new management command that will initialize a simple HTTP daemon and print to terminal all received HTTP requests. For example: ``` $ python manage.py webhook_receiver 0.0.0.0:9000 Listening on 0.0.0.0:9000... [1] Received request from 192.0.2.48 Type: POST Headers: <...> Body: <...> ``` ### Use Case It can be difficult to troubleshoot webhooks, especially when writing custom header/body templates. Introducing a local service to dump received requests allows a user to perform local troubleshooting by pointing a webhook to the local host on the specified port. ### Database Changes None ### External Dependencies None
adam added the status: acceptedtype: feature labels 2025-12-29 18:29:48 +01:00
adam closed this issue 2025-12-29 18:29:48 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#3547