Bad query on api returns Internal Server Error (500) not bad request #3455

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

Originally created by @Dimaqa on GitHub (Mar 10, 2020).

Originally assigned to: @jeremystretch on GitHub.

Environment

  • Python version: 3.6.9
  • NetBox version: develop

Steps to Reproduce

"GET /api/ipam/prefixes/?prefix=I+am+definetly+not+ip&vrf_id=45 HTTP/1.1" 500 24325

Expected Behavior

[] or 400

Observed Behavior

Internal Server Error 500
with netaddr.core.AddrFormatError: invalid IPNetwork I am definetly not ip

Originally created by @Dimaqa on GitHub (Mar 10, 2020). Originally assigned to: @jeremystretch on GitHub. ### Environment * Python version: 3.6.9 * NetBox version: develop ### Steps to Reproduce "GET /api/ipam/prefixes/?prefix=I+am+definetly+not+ip&vrf_id=45 HTTP/1.1" 500 24325 ### Expected Behavior [] or 400 ### Observed Behavior Internal Server Error 500 with `netaddr.core.AddrFormatError: invalid IPNetwork I am definetly not ip`
adam added the type: bugstatus: accepted labels 2025-12-29 18:29:18 +01:00
adam closed this issue 2025-12-29 18:29:18 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#3455