Skip to content

Something in OWS makes exceptions disappear #1387

@pjonsson

Description

@pjonsson

While debugging #1386, I got a lot of strange one-line/word error message in my log, and I'm pretty sure there is something inside OWS that takes exceptions and makes them disappear, and then logs the message from the exception. I'm not sure what though, but if I had to guess I would blame the code at

except Exception as e: # pylint: disable=broad-except
.

It's possible that code is only missing a _LOG.exception(e) so we could see crashes and then start to catch the unexpected exceptions in a better scope.

Edit: #1388 is an example of what makes me believe something inside OWS is doing something with exceptions, the only two mentions of source code in OWS are these, and those are for the caused exception that starts with

Traceback (most recent call last):
  File "/app/lib/python3.12/site-packages/datacube_ows/ows_configuration.py", line 1178, in force_range_update
    self._ranges = self.ows_index().get_ranges(self)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/lib/python3.12/site-packages/datacube_ows/index/api.py", line 236, in inner
    dc = Datacube(env=dcl.local_env)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^

but ows_configuration.py:1178 isn't an entry function, so there are callers missing from the backtrace.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions