ValueError / Nested regions #3699

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

Originally created by @fknorn on GitHub (May 18, 2020).

Environment

  • Python version: 3.6.9
  • NetBox version: 2.8.4

Steps to Reproduce

  1. Go to any Region page (https://netbox.mydomain.com/dcim/sites/?region=some-region)

Expected Behavior

Page showing Region information

Observed Behavior

Server error

<class 'ValueError'>
The QuerySet value for an exact lookup must be limited to one result using slicing.

Comment

I believe this has been broken for me in every release since 2.8. I did see the comment about nested regions (and other nested objects) for release v2.8.1, and ran those commands in the nbshell after each update, but this issue does not seem to go away on my install.

How can this be debugged further?

Originally created by @fknorn on GitHub (May 18, 2020). <!-- NOTE: IF YOUR ISSUE DOES NOT FOLLOW THIS TEMPLATE, IT WILL BE CLOSED. This form is only for reproducible bugs. If you need assistance with NetBox installation, or if you have a general question, DO NOT open an issue. Instead, post to our mailing list: https://groups.google.com/forum/#!forum/netbox-discuss Please describe the environment in which you are running NetBox. Be sure that you are running an unmodified instance of the latest stable release before submitting a bug report, and that any plugins have been disabled. --> ### Environment * Python version: 3.6.9 * NetBox version: 2.8.4 <!-- Describe in detail the exact steps that someone else can take to reproduce this bug using the current stable release of NetBox. Begin with the creation of any necessary database objects and call out every operation being performed explicitly. If reporting a bug in the REST API, be sure to reconstruct the raw HTTP request(s) being made: Don't rely on a client library such as pynetbox. --> ### Steps to Reproduce 1. Go to any Region page (https://netbox.mydomain.com/dcim/sites/?region=some-region) <!-- What did you expect to happen? --> ### Expected Behavior Page showing Region information <!-- What happened instead? --> ### Observed Behavior **Server error** > <class 'ValueError'> > The QuerySet value for an exact lookup must be limited to one result using slicing. ### Comment I believe this has been broken for me in every release since 2.8. I did see the comment about nested regions (and other nested objects) for release v2.8.1, and ran those commands in the nbshell after each update, but this issue does not seem to go away on my install. How can this be debugged further?
adam closed this issue 2025-12-29 18:30:40 +01:00
Author
Owner

@jeremystretch commented on GitHub (May 20, 2020):

I'm not able to reproduce this issue. Please provide the exact steps someone else can follow to reproduce the issue on a brand new installation of NetBox, including the creation of the suspect region(s).

@jeremystretch commented on GitHub (May 20, 2020): I'm not able to reproduce this issue. Please provide the exact steps someone else can follow to reproduce the issue on a brand new installation of NetBox, including the creation of the suspect region(s).
Author
Owner

@ryanmerolle commented on GitHub (May 23, 2020):

I am not able to create this issue either. If you can reproduce on https://netboxdemo.com then I will take a look.

@ryanmerolle commented on GitHub (May 23, 2020): I am not able to create this issue either. If you can reproduce on https://netboxdemo.com then I will take a look.
Author
Owner

@jeremystretch commented on GitHub (May 29, 2020):

Closing due to inactivity.

@jeremystretch commented on GitHub (May 29, 2020): Closing due to inactivity.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#3699