Missing string substitution in API response - "%(value)s is not one of the available choices" #2600

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

Originally created by @candlerb on GitHub (May 8, 2019).

Environment

  • Python version: 3.5.2
  • NetBox version: 2.5.12

Steps to Reproduce

curl 'http://localhost/api/ipam/ip-addresses/?vrf=invalid'

Expected Behavior

A meaningful error message is returned

Observed Behavior

{"vrf":["Select a valid choice. %(value)s is not one of the available choices."]}

It looks like some string substitution is missing: %(value)s is not something that the end user should see.

Originally created by @candlerb on GitHub (May 8, 2019). ### Environment * Python version: 3.5.2 * NetBox version: 2.5.12 ### Steps to Reproduce ``` curl 'http://localhost/api/ipam/ip-addresses/?vrf=invalid' ``` ### Expected Behavior A meaningful error message is returned ### Observed Behavior ``` {"vrf":["Select a valid choice. %(value)s is not one of the available choices."]} ``` It looks like some string substitution is missing: `%(value)s` is not something that the end user should see.
adam added the status: duplicate label 2025-12-29 18:20:17 +01:00
adam closed this issue 2025-12-29 18:20:17 +01:00
Author
Owner

@jeremystretch commented on GitHub (May 17, 2019):

Covered by #2819

@jeremystretch commented on GitHub (May 17, 2019): Covered by #2819
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#2600