Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError at /core/config/ #15192

Closed
francois-vincent opened this issue Feb 19, 2024 · 0 comments · Fixed by #15207
Closed

TypeError at /core/config/ #15192

francois-vincent opened this issue Feb 19, 2024 · 0 comments · Fixed by #15207
Assignees
Labels
severity: medium Results in substantial degraded or broken functionality for specfic workflows status: accepted This issue has been accepted for implementation type: bug A confirmed report of unexpected behavior in the application

Comments

@francois-vincent
Copy link

Deployment Type

Self-hosted

NetBox Version

3.7.3-dev

Python Version

3.10

Steps to Reproduce

git clone git@github.com:netbox-community/netbox.git
copy netbox/configuration_example.py netbox/configuration.py
basic editing of configuration.py (ALLOWED_HOSTS = ['*'], DEBBUG=True)
./manage.py collectstatic
./manage.py migrate
./manage.py createsuperuser
python manage.py runserver 0.0.0.0:8000 --insecure

then goto http://localhost:8000/core/config/ in a browser (firefox on ubuntu 20.04)

Expected Behavior

a netbox view

Observed Behavior

Traceback (most recent call last):
File "/home/francois/.pyenv/versions/netbox/lib/python3.10/site-packages/django/core/handlers/exception.py", line 55, in inner
response = get_response(request)
File "/home/francois/.pyenv/versions/netbox/lib/python3.10/site-packages/graphiql_debug_toolbar/middleware.py", line 70, in call
response = super().call(request)
File "/home/francois/.pyenv/versions/netbox/lib/python3.10/site-packages/debug_toolbar/middleware.py", line 69, in call
panel.generate_stats(request, response)
File "/home/francois/.pyenv/versions/netbox/lib/python3.10/site-packages/debug_toolbar/panels/templates/panel.py", line 196, in generate_stats
template_data["context_list"] = self.process_context_list(
File "/home/francois/.pyenv/versions/netbox/lib/python3.10/site-packages/debug_toolbar/panels/templates/panel.py", line 137, in process_context_list
if hasattr(value, "_wrapped"):
File "/home/francois/Source/Python/netbox/netbox/core/models/config.py", line 47, in getattr
if item in self.data:

Exception Type: TypeError at /core/config/
Exception Value: argument of type 'Config' is not iterable

@francois-vincent francois-vincent added the type: bug A confirmed report of unexpected behavior in the application label Feb 19, 2024
@jeremystretch jeremystretch added status: needs owner This issue is tentatively accepted pending a volunteer committed to its implementation severity: medium Results in substantial degraded or broken functionality for specfic workflows labels Feb 20, 2024
@arthanson arthanson self-assigned this Feb 20, 2024
@arthanson arthanson removed the status: needs owner This issue is tentatively accepted pending a volunteer committed to its implementation label Feb 20, 2024
@jeremystretch jeremystretch added the status: accepted This issue has been accepted for implementation label Feb 20, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
severity: medium Results in substantial degraded or broken functionality for specfic workflows status: accepted This issue has been accepted for implementation type: bug A confirmed report of unexpected behavior in the application
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants