Server error in search #10610

Closed
opened 2025-12-29 21:33:41 +01:00 by adam · 4 comments
Owner

Originally created by @jiuka on GitHub (Jan 7, 2025).

Originally assigned to: @bctiemann on GitHub.

Deployment Type

Self-hosted

Triage priority

N/A

NetBox Version

v4.2.0

Python Version

3.10

Steps to Reproduce

  1. Add an IP to IPAM
  2. Seach for this IP

Example: https://demo.netbox.dev/search/?q=172.16.0.7

Expected Behavior

IP is found

Observed Behavior

Server error:

  File "/opt/netbox/current/netbox/extras/models/search.py", line 73, in display_attrs
    name = self.object._meta.get_field(attr).verbose_name
AttributeError: 'GenericRel' object has no attribute 'verbose_name'
Originally created by @jiuka on GitHub (Jan 7, 2025). Originally assigned to: @bctiemann on GitHub. ### Deployment Type Self-hosted ### Triage priority N/A ### NetBox Version v4.2.0 ### Python Version 3.10 ### Steps to Reproduce 1. Add an IP to IPAM 2. Seach for this IP Example: https://demo.netbox.dev/search/?q=172.16.0.7 ### Expected Behavior IP is found ### Observed Behavior Server error: ``` File "/opt/netbox/current/netbox/extras/models/search.py", line 73, in display_attrs name = self.object._meta.get_field(attr).verbose_name AttributeError: 'GenericRel' object has no attribute 'verbose_name' ```
adam added the type: bugstatus: acceptedseverity: high labels 2025-12-29 21:33:41 +01:00
adam closed this issue 2025-12-29 21:33:41 +01:00
Author
Owner

@jeremystretch commented on GitHub (Jan 7, 2025):

Looks like the same problem exists for VM clusters as well.

@jeremystretch commented on GitHub (Jan 7, 2025): Looks like the same problem exists for VM clusters as well.
Author
Owner

@ChrisRecioHive commented on GitHub (Jan 8, 2025):

Hi,

It looks like this issue hasn't fully been fixed in the new release. When using the searchbar, I'm getting the following error

CircuitTermination has no field named 'site'

Python version: 3.12.3
NetBox version: 4.2.1
Plugins: None installed

Thanks

@ChrisRecioHive commented on GitHub (Jan 8, 2025): Hi, It looks like this issue hasn't fully been fixed in the new release. When using the searchbar, I'm getting the following error ``` CircuitTermination has no field named 'site' Python version: 3.12.3 NetBox version: 4.2.1 Plugins: None installed ``` Thanks
Author
Owner

@bctiemann commented on GitHub (Jan 8, 2025):

@ChrisRecioHive Please open a new issue with reproduction steps. Thanks!

@bctiemann commented on GitHub (Jan 8, 2025): @ChrisRecioHive Please open a new issue with reproduction steps. Thanks!
Author
Owner

@bctiemann commented on GitHub (Jan 8, 2025):

@ChrisRecioHive Never mind, I opened https://github.com/netbox-community/netbox/issues/18350

@bctiemann commented on GitHub (Jan 8, 2025): @ChrisRecioHive Never mind, I opened https://github.com/netbox-community/netbox/issues/18350
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#10610