Skip to content

Microservice ReadError during free opinion import #4680

Open

Description

Three of these incidents so far. Can we catch them with a retry and have them succeed?

Sentry Issue: COURTLISTENER-8KV

ReadError: 
(7 additional frame(s) were not displayed)
...
  File "httpcore/_async/http11.py", line 186, in _receive_response_headers
    event = await self._receive_event(timeout=timeout)
  File "httpcore/_async/http11.py", line 224, in _receive_event
    data = await self._network_stream.read(
  File "httpcore/_backends/anyio.py", line 32, in read
    with map_exceptions(exc_map):
  File "contextlib.py", line 162, in __exit__
    self.gen.throw(value)
  File "httpcore/_exceptions.py", line 14, in map_exceptions
    raise to_exc(exc) from exc

ReadError: 
(9 additional frame(s) were not displayed)
...
  File "cl/corpus_importer/tasks.py", line 707, in get_and_process_free_pdf
    success, msg = update_rd_metadata(
  File "cl/corpus_importer/tasks.py", line 2229, in update_rd_metadata
    response = async_to_sync(microservice)(
  File "cl/lib/microservice_utils.py", line 102, in microservice
    return await client.send(req)

Filed by @mlissner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    • Status

      No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions