Drop-down Menu Failure #1813

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

Originally created by @adunbrook on GitHub (Jun 25, 2018).

Issue type

[ ] Feature request
[X] Bug report
[ ] Documentation

Environment

  • Python version: 3.5.2
  • NetBox version: 2.3.4

Description

We noticed recently that when adding a new device the drop-down menus do not get populated with options. Example being the Manufacturer being selected but Device Type doesn't auto fill with options matching the Manufacturer.

I went into the postgres and everything seems fine there with the ID values.

This was occurring with version 2.3.2 and 2.3.4, so not an issue with the latest version. My only thought is that we updated something else on the server and it is causing an issue now.

Originally created by @adunbrook on GitHub (Jun 25, 2018). ### Issue type [ ] Feature request <!-- An enhancement of existing functionality --> [X] Bug report <!-- Unexpected or erroneous behavior --> [ ] Documentation <!-- A modification to the documentation --> <!-- Please describe the environment in which you are running NetBox. (Be sure to verify that you are running the latest stable release of NetBox before submitting a bug report.) If you are submitting a bug report and have made any changes to the code base, please first validate that your bug can be recreated while running an official release. --> ### Environment * Python version: 3.5.2 * NetBox version: 2.3.4 <!-- BUG REPORTS must include: * A list of the steps needed for someone else to reproduce the bug * A description of the expected and observed behavior * Any relevant error messages (screenshots may also help) FEATURE REQUESTS must include: * A detailed description of the proposed functionality * A use case for the new feature * A rough description of any necessary changes to the database schema * Any relevant third-party libraries which would be needed --> ### Description We noticed recently that when adding a new device the drop-down menus do not get populated with options. Example being the Manufacturer being selected but Device Type doesn't auto fill with options matching the Manufacturer. I went into the postgres and everything seems fine there with the ID values. This was occurring with version 2.3.2 and 2.3.4, so not an issue with the latest version. My only thought is that we updated something else on the server and it is causing an issue now.
adam closed this issue 2025-12-29 17:19:21 +01:00
Author
Owner

@jeremystretch commented on GitHub (Jun 29, 2018):

Cannot reproduce this on v2.3.4. You'll need to determine whether the browser is sending API requests when the parent field is updated, and if it is, whether those requests are successful. You can do this using the developer tools built into the browser, or by monitoring requests and responses on the server.

@jeremystretch commented on GitHub (Jun 29, 2018): Cannot reproduce this on v2.3.4. You'll need to determine whether the browser is sending API requests when the parent field is updated, and if it is, whether those requests are successful. You can do this using the developer tools built into the browser, or by monitoring requests and responses on the server.
Author
Owner

@adunbrook commented on GitHub (Jul 5, 2018):

Sorry for the late reply.

I tested for API requests and see the GET request for the "add devices" page, but when I update the parent field I see nothing in the developer tools or an API request on the server.

192.168.0.42 - - [05/Jul/2018:08:55:35 -0400] "GET /dcim/devices/ HTTP/1.1" 200 38448 "https://fake.site/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.186 Safari/537.36"
192.168.0.42 - - [05/Jul/2018:08:55:44 -0400] "GET /dcim/devices/add/ HTTP/1.1" 200 28602 "https://fake.site/dcim/devices/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.186 Safari/537.36"

Also getting a weird jquery message in the debug:

jquery.min.js Failed to load resource: net::ERR_CONNECTION_REFUSED
jquery-3.3.1.min.js:2 jQuery.Deferred exception: $ is not a function TypeError: $ is not a function
    at HTMLDocument.<anonymous> (https://fake.site/static/js/forms.js?v2.3.4:4:5)
    at l (https://fake.site/static/js/jquery-3.3.1.min.js:2:29375)
    at c (https://fake.cite/static/js/jquery-3.3.1.min.js:2:29677) undefined
jquery-3.3.1.min.js:2 Uncaught TypeError: $ is not a function
    at HTMLDocument.<anonymous> (forms.js:4)
    at l (jquery-3.3.1.min.js:2)
    at c (jquery-3.3.1.min.js:2)



@adunbrook commented on GitHub (Jul 5, 2018): Sorry for the late reply. I tested for API requests and see the GET request for the "add devices" page, but when I update the parent field I see nothing in the developer tools or an API request on the server. ``` 192.168.0.42 - - [05/Jul/2018:08:55:35 -0400] "GET /dcim/devices/ HTTP/1.1" 200 38448 "https://fake.site/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.186 Safari/537.36" 192.168.0.42 - - [05/Jul/2018:08:55:44 -0400] "GET /dcim/devices/add/ HTTP/1.1" 200 28602 "https://fake.site/dcim/devices/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.186 Safari/537.36" ``` Also getting a weird jquery message in the debug: ``` jquery.min.js Failed to load resource: net::ERR_CONNECTION_REFUSED jquery-3.3.1.min.js:2 jQuery.Deferred exception: $ is not a function TypeError: $ is not a function at HTMLDocument.<anonymous> (https://fake.site/static/js/forms.js?v2.3.4:4:5) at l (https://fake.site/static/js/jquery-3.3.1.min.js:2:29375) at c (https://fake.cite/static/js/jquery-3.3.1.min.js:2:29677) undefined jquery-3.3.1.min.js:2 Uncaught TypeError: $ is not a function at HTMLDocument.<anonymous> (forms.js:4) at l (jquery-3.3.1.min.js:2) at c (jquery-3.3.1.min.js:2) ``` 
Author
Owner

@jeremystretch commented on GitHub (Jul 18, 2018):

Can't think of anything that would cause this. Try upgrading to v2.3.6, and be sure to re-run python manage.py collectstatic.

@jeremystretch commented on GitHub (Jul 18, 2018): Can't think of anything that would cause this. Try upgrading to v2.3.6, and be sure to re-run `python manage.py collectstatic`.
Author
Owner

@jeremystretch commented on GitHub (Jul 31, 2018):

Closing due to lack of activity.

@jeremystretch commented on GitHub (Jul 31, 2018): Closing due to lack of activity.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#1813