Server error when adding a new device #5510

Closed
opened 2025-12-29 19:28:49 +01:00 by adam · 8 comments
Owner

Originally created by @okalietnik on GitHub (Oct 12, 2021).

Originally assigned to: @jeremystretch on GitHub.

NetBox version

v3.0.7

Python version

3.9

Steps to Reproduce

  1. Open Devices on the left side menu
  2. Click on the button Add to create a new device
  3. Fill all the required fields to create a new device (device role, device type, site)
  4. Click on Create & Add Another to create a new device
  5. Click on Create & Add Another one more time to get the error

Expected Behavior

It creates a new device but throw out an error

Observed Behavior

<class ’TypeError'>
Field ’id’ expected a number but got [’17’, ’12’].
Python version: 3.9.5 NetBox version: 3.0.7

Originally created by @okalietnik on GitHub (Oct 12, 2021). Originally assigned to: @jeremystretch on GitHub. ### NetBox version v3.0.7 ### Python version 3.9 ### Steps to Reproduce 1. Open Devices on the left side menu 2. Click on the button Add to create a new device 3. Fill all the required fields to create a new device (device role, device type, site) 4. Click on Create & Add Another to create a new device 5. Click on Create & Add Another one more time to get the error ### Expected Behavior It creates a new device but throw out an error ### Observed Behavior <class ’TypeError'> Field ’id’ expected a number but got [’17’, ’12’]. Python version: 3.9.5 NetBox version: 3.0.7
adam added the type: bugstatus: accepted labels 2025-12-29 19:28:49 +01:00
adam closed this issue 2025-12-29 19:28:49 +01:00
Author
Owner

@jeremystretch commented on GitHub (Oct 12, 2021):

Thank you for opening a bug report. I was unable to reproduce the reported behavior on NetBox v3.0.7. Please re-confirm the reported behavior on the current stable release and adjust your post above as necessary. Remember to provide detailed steps that someone else can follow using a clean installation of NetBox to reproduce the issue. Remember to include the steps taken to create any initial objects or other data.

@jeremystretch commented on GitHub (Oct 12, 2021): Thank you for opening a bug report. I was unable to reproduce the reported behavior on NetBox v3.0.7. Please re-confirm the reported behavior on the current stable release and adjust your post above as necessary. Remember to provide detailed steps that someone else can follow using a clean installation of NetBox to reproduce the issue. Remember to include the steps taken to create any initial objects or other data.
Author
Owner

@Mstrodl commented on GitHub (Oct 12, 2021):

@jeremystretch I have been able to consistently reproduce this by using the "Create & Add Another" button. It only errors once I "Create" on the next device. I just installed a day ago and am running netbox-app-f4d88f655-c7zh5 (v3.0.7)

@Mstrodl commented on GitHub (Oct 12, 2021): @jeremystretch I have been able to consistently reproduce this by using the "Create & Add Another" button. It only errors once I "Create" on the next device. I just installed a day ago and am running `netbox-app-f4d88f655-c7zh5 (v3.0.7)`
Author
Owner

@jeremystretch commented on GitHub (Oct 12, 2021):

You'll need to update your issue report above to include complete reproduction steps that someone else can follow to reproduce the bug, as directed by the bug report template. Without those, no action will be taken.

@jeremystretch commented on GitHub (Oct 12, 2021): You'll need to update your issue report above to include **complete reproduction steps** that someone else can follow to reproduce the bug, as directed by the bug report template. Without those, no action will be taken.
Author
Owner

@okalietnik commented on GitHub (Oct 12, 2021):

@Mstrodl Thank you.

@jeremystretch I added the complete reproduction steps.

@okalietnik commented on GitHub (Oct 12, 2021): @Mstrodl Thank you. @jeremystretch I added the complete reproduction steps.
Author
Owner

@geor-g commented on GitHub (Oct 13, 2021):

Confirmed; I'm running into this as well.

@geor-g commented on GitHub (Oct 13, 2021): Confirmed; I'm running into this as well.
Author
Owner

@lachlanjholmes commented on GitHub (Oct 14, 2021):

+1 for me as well.

@lachlanjholmes commented on GitHub (Oct 14, 2021): +1 for me as well.
Author
Owner

@jasonyates commented on GitHub (Oct 19, 2021):

+1 for me. Thanks for confirming the fix in #7585

@jasonyates commented on GitHub (Oct 19, 2021): +1 for me. Thanks for confirming the fix in #7585
Author
Owner

@geor-g commented on GitHub (Oct 19, 2021):

@jasonyates It was already fixed via b95773938d, see above.

@geor-g commented on GitHub (Oct 19, 2021): @jasonyates It was already fixed via https://github.com/netbox-community/netbox/commit/b95773938d50acdb5404a63c346ca93bee5fdbb9, see above.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#5510