Skip to content

Unable to trigger a webhook via script execution #14382

Closed
@jeremystretch

Description

@jeremystretch

NetBox version

v3.6.5

Python version

3.10

Steps to Reproduce

  1. Upload a simple script that executes cleanly. (It doesn't have to do anything.)
  2. Create a webhook.
    • Content types: Extras > Script
    • Events: Job executions, job terminations
    • URL: Where you have a receiver running (can use the webhook_receiver management command locally)
  3. Ensure the RQ worker process is running.
  4. Run the script you uploaded and verify that it completes successfully.

Expected Behavior

Two webhooks should be sent: One when the script starts, and another when it ends.

Observed Behavior

The webhook is not triggered for either event. This is because the content type with which the webhook is associated (extras.Script) differs from the job's object type (extras.ScriptModule). This can be confirmed by inspecting the completed job under operations > jobs.

Metadata

Metadata

Assignees

Labels

severity: mediumResults in substantial degraded or broken functionality for specfic workflowsstatus: acceptedThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the application

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions