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

PRIORITY Update Broker Data Crashes in tom-demo-dev #792

Open
Tracked by #767
jchate6 opened this issue Dec 20, 2023 · 1 comment
Open
Tracked by #767

PRIORITY Update Broker Data Crashes in tom-demo-dev #792

jchate6 opened this issue Dec 20, 2023 · 1 comment
Labels
bug Something isn't working Data Services Data Services

Comments

@jchate6
Copy link
Contributor

jchate6 commented Dec 20, 2023

The button in target list page breaks with the following traceback:

Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/django/core/handlers/exception.py", line 55, in inner
    response = get_response(request)
  File "/usr/local/lib/python3.9/site-packages/django/core/handlers/base.py", line 199, in _get_response
    response = self.process_exception_by_middleware(e, request)
  File "/usr/local/lib/python3.9/site-packages/django/core/handlers/base.py", line 362, in process_exception_by_middleware
    response = middleware_method(request, exception)
  File "/usr/local/lib/python3.9/site-packages/tom_common/middleware.py", line 29, in process_exception
    raise exception
  File "/usr/local/lib/python3.9/site-packages/django/core/handlers/base.py", line 197, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/local/lib/python3.9/site-packages/django/views/generic/base.py", line 104, in view
    return self.dispatch(request, *args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/django/contrib/auth/mixins.py", line 73, in dispatch
    return super().dispatch(request, *args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/django/views/generic/base.py", line 143, in dispatch
    return handler(request, *args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/tom_dataproducts/views.py", line 511, in get
    call_command('updatereduceddata', stdout=out)
  File "/usr/local/lib/python3.9/site-packages/django/core/management/__init__.py", line 194, in call_command
    return command.execute(*args, **defaults)
  File "/usr/local/lib/python3.9/site-packages/django/core/management/base.py", line 458, in execute
    output = self.handle(*args, **options)
  File "/usr/local/lib/python3.9/site-packages/tom_dataproducts/management/commands/updatereduceddata.py", line 42, in handle
    clazz.process_reduced_data(target)
  File "/usr/local/lib/python3.9/site-packages/tom_alerts/brokers/gaia.py", line 150, in process_reduced_data
    alert_name = alert['name']

Exception Type: KeyError at /dataproducts/data/reduced/update/
Exception Value: 'name'

I can't reproduce this locally. I'm wondering if this has been fixed in a more recent version of tomtoolkit.

@github-project-automation github-project-automation bot moved this to Triage in TOM Toolkit Dec 20, 2023
@jchate6 jchate6 moved this from Triage to Backlog in TOM Toolkit Dec 20, 2023
@jchate6 jchate6 added this to the AAS Workshop Prep milestone Dec 20, 2023
@jchate6 jchate6 moved this from Backlog to Triage in TOM Toolkit Jan 17, 2024
@jchate6
Copy link
Contributor Author

jchate6 commented Jan 17, 2024

Details:
In tom-demo-dev going to the target list, and clicking the "update Broker Data" button breaks.

http://tom-demo-dev.lco.gtn/targets/

Does not happen with Tom-Demo or local.

@jchate6 jchate6 changed the title PRIORITY Update Broker Data Crashes PRIORITY Update Broker Data Crashes in tom-demo-dev Jan 17, 2024
@jchate6 jchate6 added bug Something isn't working Data Services Data Services labels Jan 19, 2024
@jchate6 jchate6 moved this from Triage to Backlog in TOM Toolkit Jan 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Data Services Data Services
Projects
Status: Backlog
Development

No branches or pull requests

1 participant