Error posting to /api/ipam/vlans/ #2561

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

Originally created by @michaelmfranz on GitHub (Apr 29, 2019).


Environment

  • Python version: 2.7.15rc1
  • NetBox version: 2.4.2

Steps to Reproduce

  1. Set up netbox through the front end to so front end user is able to add VLANS to VLAN groups
  2. Make an API call to read in the new VLAN e.g. GET /api/ipam/vlans/1/
  3. Make modifications to the returned data to create a new name, new slug and new Id so it is able to be POSTed back to create a new vlan

New VLAN record created by POSTing to /api/ipam/vlans/

an error occurred (see below), the same error occurs through the Swagger UI

TypeError at /api/ipam/vlans/
int() argument must be a string, a bytes-like object or a number, not 'dict'

Originally created by @michaelmfranz on GitHub (Apr 29, 2019). ---------------------------------------------------------------------------------------- ### Environment * Python version: 2.7.15rc1 * NetBox version: 2.4.2 ---------------------------------------------------------------------------------------- ### Steps to Reproduce 1. Set up netbox through the front end to so front end user is able to add VLANS to VLAN groups 2. Make an API call to read in the new VLAN e.g. GET /api/ipam/vlans/1/ 3. Make modifications to the returned data to create a new name, new slug and new Id so it is able to be POSTed back to create a new vlan ---------------------------------------------------------------------------------------- <!-- What did you expect to happen? --> New VLAN record created by POSTing to /api/ipam/vlans/ ---------------------------------------------------------------------------------------- <!-- What happened instead? --> an error occurred (see below), the same error occurs through the Swagger UI TypeError at /api/ipam/vlans/ int() argument must be a string, a bytes-like object or a number, not 'dict' ----------------------------------------------------------------------------------------
adam closed this issue 2025-12-29 18:19:58 +01:00
Author
Owner

@jeremystretch commented on GitHub (Apr 29, 2019):

NetBox v2.4.2 is very old. You'll need to upgrade to the current stable release (v2.5.10) as well as upgrade to Python 3. Please post to the mailing list if you need assistance with this.

@jeremystretch commented on GitHub (Apr 29, 2019): NetBox v2.4.2 is very old. You'll need to upgrade to the current stable release (v2.5.10) as well as upgrade to Python 3. Please post to the [mailing list](https://groups.google.com/forum/#!forum/netbox-discuss) if you need assistance with this.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#2561