server error when try to get IPs for a prefix #5929

Closed
opened 2025-12-29 19:34:23 +01:00 by adam · 2 comments
Owner

Originally created by @empusas on GitHub (Jan 12, 2022).

NetBox version

v3.1.4

Python version

3.9

Steps to Reproduce

  1. Go to prefix and lick on IP addresses or use the url /ipam/prefixes//ip-addresses/

Expected Behavior

Show the list of IP addresses for that prefix

Observed Behavior

A new page with server error shows this message:

<class 'ValueError'>

'role' does not resolve to an item that supports prefetching - this is an invalid parameter to prefetch_related().

Python version: 3.9.9
NetBox version: 3.1.4

Originally created by @empusas on GitHub (Jan 12, 2022). ### NetBox version v3.1.4 ### Python version 3.9 ### Steps to Reproduce 1. Go to prefix and lick on IP addresses or use the url /ipam/prefixes/<id>/ip-addresses/ ### Expected Behavior Show the list of IP addresses for that prefix ### Observed Behavior A new page with server error shows this message: <class 'ValueError'> 'role' does not resolve to an item that supports prefetching - this is an invalid parameter to prefetch_related(). Python version: 3.9.9 NetBox version: 3.1.4
adam added the type: bugstatus: duplicate labels 2025-12-29 19:34:23 +01:00
adam closed this issue 2025-12-29 19:34:23 +01:00
Author
Owner

@rodvand commented on GitHub (Jan 12, 2022):

Upgrade to 3.1.5 and it's fixed.

@rodvand commented on GitHub (Jan 12, 2022): Upgrade to 3.1.5 and it's fixed.
Author
Owner

@jeremystretch commented on GitHub (Jan 12, 2022):

Duplicate of #8213

@jeremystretch commented on GitHub (Jan 12, 2022): Duplicate of #8213
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#5929