Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
lferran committed Nov 27, 2023
1 parent 1a466ab commit 75b522f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nucliadb/nucliadb/search/search/chat/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,9 @@ def _parse_answer_status_code(chunk: bytes) -> AnswerStatusCode:
# It may be a bug in the aiohttp.StreamResponse implementation,
# but we haven't spotted it yet. For now, we just try to parse the status code
# from the tail of the chunk.
logger.debug(
f"Error decoding status code from /chat's last chunk. Chunk: {chunk!r}"
)
if chunk == b"":
raise
if chunk.endswith(b"0"):
Expand Down

1 comment on commit 75b522f

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmark

Benchmark suite Current: 75b522f Previous: 6a3e3cd Ratio
nucliadb/search/tests/unit/search/test_fetch.py::test_highligh_error 13124.664068744143 iter/sec (stddev: 3.668936398109509e-7) 6621.622688322887 iter/sec (stddev: 0.000003234538187648496) 0.50

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.