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

Unexpected error while viewing conformity details #505

Open
duhow opened this issue Oct 17, 2023 · 2 comments
Open

Unexpected error while viewing conformity details #505

duhow opened this issue Oct 17, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@duhow
Copy link
Contributor

duhow commented Oct 17, 2023

Describe the bug
Unexpected Django error appeared in logs and browser while viewing conformity details of a machine.

📝 Logs

Internal Server Error: /api/schedules/refresh/
Traceback (most recent call last):
  File "/opt/alcali/.local/lib/python3.9/site-packages/django/core/handlers/exception.py", line 47, in inner
    response = get_response(request)
  File "/opt/alcali/.local/lib/python3.9/site-packages/django/core/handlers/base.py", line 181, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/opt/alcali/.local/lib/python3.9/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
    return view_func(*args, **kwargs)
  File "/opt/alcali/.local/lib/python3.9/site-packages/rest_framework/viewsets.py", line 125, in view
    return self.dispatch(request, *args, **kwargs)
  File "/opt/alcali/.local/lib/python3.9/site-packages/rest_framework/views.py", line 509, in dispatch
    response = self.handle_exception(exc)
  File "/opt/alcali/.local/lib/python3.9/site-packages/rest_framework/views.py", line 469, in handle_exception
    self.raise_uncaught_exception(exc)
  File "/opt/alcali/.local/lib/python3.9/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
    raise exc
  File "/opt/alcali/.local/lib/python3.9/site-packages/rest_framework/views.py", line 506, in dispatch
    response = handler(request, *args, **kwargs)
  File "/opt/alcali/.local/lib/python3.9/site-packages/api/views/alcali.py", line 294, in refresh
    ret = refresh_schedules()
  File "/opt/alcali/.local/lib/python3.9/site-packages/api/backend/netapi.py", line 185, in refresh_schedules
    for job_name in minion_jobs:
TypeError: 'bool' object is not iterable

Version 3003.1.0

@mattLLVW
Copy link
Contributor

is it still the case with the last version?

@duhow
Copy link
Contributor Author

duhow commented Oct 21, 2023

Unable to reproduce again, just found it once...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants