Server Error when creating permission with constraints #9185

Closed
opened 2025-12-29 20:46:44 +01:00 by adam · 0 comments
Owner

Originally created by @Kani999 on GitHub (Feb 2, 2024).

Deployment Type

Self-hosted

NetBox Version

v3.7.1

Python Version

3.8

Steps to Reproduce

  1. Add new Permission https://demo.netbox.dev/users/permissions/add/
  2. Setup Constraints as {"role": "server"} (in API docs it should accept slug as param)
  3. Create
  4. Obtain Server Error
<class 'ValueError'>

Field 'id' expected a number but got 'server'.

Python version: 3.8.10
NetBox version: 3.7.1
Plugins: 
  netbox_demo: 0.3.1

Expected Behavior

Server Error should not occur. It should display some kind of validation popup.

Observed Behavior

Server Error occurs

<class 'ValueError'>

Field 'id' expected a number but got 'server'.

Python version: 3.8.10
NetBox version: 3.7.1
Plugins: 
  netbox_demo: 0.3.1
Originally created by @Kani999 on GitHub (Feb 2, 2024). ### Deployment Type Self-hosted ### NetBox Version v3.7.1 ### Python Version 3.8 ### Steps to Reproduce 1. Add new Permission https://demo.netbox.dev/users/permissions/add/ 2. Setup **Constraints** as `{"role": "server"}` (in API docs it should accept `slug` as param) 3. Create 4. Obtain Server Error ``` <class 'ValueError'> Field 'id' expected a number but got 'server'. Python version: 3.8.10 NetBox version: 3.7.1 Plugins: netbox_demo: 0.3.1 ``` ### Expected Behavior Server Error should not occur. It should display some kind of validation popup. ### Observed Behavior Server Error occurs ``` <class 'ValueError'> Field 'id' expected a number but got 'server'. Python version: 3.8.10 NetBox version: 3.7.1 Plugins: netbox_demo: 0.3.1 ```
adam closed this issue 2025-12-29 20:46:44 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#9185