ContentTypeSerializer raise a ValueError if the split fails #2437

Closed
opened 2025-12-29 17:26:05 +01:00 by adam · 0 comments
Owner

Originally created by @aruhier on GitHub (Mar 6, 2019).

Environment

  • Python version: 3.6.7
  • NetBox version: 2.5.7

Steps to Reproduce

  1. POST a cable with an termination type with a wrong value, without a dot: example interface instead of dcim.interface

Should return a 400 error telling that the termination type is invalid.

What happens: Get a 500 error telling that a ValueError has been raised in the ContentType serializer.

Originally created by @aruhier on GitHub (Mar 6, 2019). ### Environment * Python version: 3.6.7 * NetBox version: 2.5.7 ### Steps to Reproduce 1. POST a cable with an termination type with a wrong value, without a dot: example `interface` instead of `dcim.interface` <!-- What did you expect to happen? --> Should return a 400 error telling that the termination type is invalid. What happens: Get a 500 error telling that a ValueError has been raised in the ContentType serializer.
adam added the type: bugstatus: accepted labels 2025-12-29 17:26:05 +01:00
adam closed this issue 2025-12-29 17:26:05 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#2437