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

Scheduling fails when no instruments available #612

Open
talister opened this issue Dec 6, 2022 · 0 comments
Open

Scheduling fails when no instruments available #612

talister opened this issue Dec 6, 2022 · 0 comments
Assignees
Labels
bug intermittent Bugs which only happen sometimes, often with external services

Comments

@talister
Copy link
Member

talister commented Dec 6, 2022

ERROR:astrometrics.sources_subs:{'non_field_errors': ["Invalid instrument type '1M0-SCICAM-SINISTRO' at site=cpt,enc=domb, tel=1m0a. \nValid instruments include: ."]}
[05/Dec/2022 23:53:22] ERROR Internal Server Error: /schedule/36254/confirm/
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/django/core/handlers/exception.py", line 47, in inner
response = get_response(request)
File "/usr/local/lib/python3.8/site-packages/django/core/handlers/base.py", line 181, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/local/lib/python3.8/site-packages/django/contrib/auth/decorators.py", line 21, in _wrapped_view
return view_func(request, *args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/django/views/generic/base.py", line 70, in view
return self.dispatch(request, *args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/django/views/generic/base.py", line 98, in dispatch
return handler(request, *args, **kwargs)
File "/var/www/apps/neoexchange/core/views.py", line 1105, in post
return self.form_valid(form, request)
File "/var/www/apps/neoexchange/core/views.py", line 1121, in form_valid
tracking_num, sched_params = schedule_submit(new_form.cleaned_data, target, username)
File "/var/www/apps/neoexchange/core/views.py", line 1736, in schedule_submit
tracking_number, resp_params = submit_block_to_scheduler(body_elements, params)
File "/var/www/apps/neoexchange/astrometrics/sources_subs.py", line 2318, in submit_block_to_scheduler
for x in user_request['requests']:
KeyError: 'requests'

@talister talister added bug intermittent Bugs which only happen sometimes, often with external services labels Dec 6, 2022
@talister talister self-assigned this Dec 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug intermittent Bugs which only happen sometimes, often with external services
Projects
None yet
Development

No branches or pull requests

1 participant