Webhooks issue when modification on multiple sites at the same time #4286

Closed
opened 2025-12-29 18:34:26 +01:00 by adam · 1 comment
Owner

Originally created by @Yacine8888 on GitHub (Nov 19, 2020).

Environment

Docker netbox

  • Python version: 2.7.5
  • NetBox version: v2.9.9

Steps to Reproduce

  1. Create a webhook on site object
  2. Go to the sites page : dcim/sites/ .
  3. Select several sites and click on Edit Selected
  4. Do a modification on anything. Then click on apply.
  5. Then see the content of the webhook, you will figure only the details of one site is in the webhook.

Expected Behavior

The details of all updated sites must be in the webhook.

Observed Behavior

Only the content of one site among many sites updated, is sent in the webhook.

Originally created by @Yacine8888 on GitHub (Nov 19, 2020). <!-- NOTE: IF YOUR ISSUE DOES NOT FOLLOW THIS TEMPLATE, IT WILL BE CLOSED. This form is only for reproducible bugs. If you need assistance with NetBox installation, or if you have a general question, DO NOT open an issue. Instead, post to our mailing list: https://groups.google.com/g/netbox-discuss Please describe the environment in which you are running NetBox. Be sure that you are running an unmodified instance of the latest stable release before submitting a bug report, and that any plugins have been disabled. --> ### Environment Docker netbox * Python version: 2.7.5 * NetBox version: v2.9.9 <!-- Describe in detail the exact steps that someone else can take to reproduce this bug using the current stable release of NetBox. Begin with the creation of any necessary database objects and call out every operation being performed explicitly. If reporting a bug in the REST API, be sure to reconstruct the raw HTTP request(s) being made: Don't rely on a client library such as pynetbox. I created a webhook, on objects type sites which will be triggered on site modification. The webhook will then trigger a job on jenkins. I observed that when i do a modification on multiple sites at the same time, the webhook is triggered but only send information related the one site. The webhook payload should contains the details of all sites that were updated. --> ### Steps to Reproduce 1. Create a webhook on site object 2. Go to the sites page : dcim/sites/ . 3. Select several sites and click on Edit Selected 4. Do a modification on anything. Then click on apply. 5. Then see the content of the webhook, you will figure only the details of one site is in the webhook. <!-- What did you expect to happen? --> ### Expected Behavior The details of all updated sites must be in the webhook. <!-- What happened instead? --> ### Observed Behavior Only the content of one site among many sites updated, is sent in the webhook.
adam closed this issue 2025-12-29 18:34:26 +01:00
Author
Owner

@jeremystretch commented on GitHub (Nov 19, 2020):

A separate webhook is sent for each object being modified. (This behavior was confirmed on v2.9.9.) The receiver must listen for and process each incoming HTTP request.

@jeremystretch commented on GitHub (Nov 19, 2020): A separate webhook is sent for each object being modified. (This behavior was confirmed on v2.9.9.) The receiver must listen for and process each incoming HTTP request.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#4286