Fixes #21486: Fix event rule webhooks for scripts executed via runscript #207

Closed
opened 2026-04-05 16:23:02 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @pheus on 3/6/2026

Fixes: #21486

Populate COOKIES and set method to POST on the NetBoxFakeRequest created by the runscript management command.

This makes the fake request behave more like a real Django request and avoids errors during event rule and webhook processing when scripts are run via CLI or scheduled jobs.

*Originally created by @pheus on 3/6/2026* ### Fixes: #21486 Populate `COOKIES` and set `method` to `POST` on the `NetBoxFakeRequest` created by the `runscript` management command. This makes the fake request behave more like a real Django request and avoids errors during event rule and webhook processing when scripts are run via CLI or scheduled jobs.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/netbox#207