Skip to content

Commit 817588b

Browse files
committed
improve error reporting
1 parent ac26d2c commit 817588b

File tree

1 file changed

+2
-0
lines changed
  • packages/service-library/src/servicelib/rabbitmq

1 file changed

+2
-0
lines changed

packages/service-library/src/servicelib/rabbitmq/_client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@ async def _on_message(
118118
message_handler, max_retries_upon_error, message
119119
)
120120
except ChannelInvalidStateError as exc:
121+
# NOTE: this error can happen as can be seen in aio-pika code
122+
# see https://github.com/mosquito/aio-pika/blob/master/aio_pika/robust_queue.py
121123
_logger.exception(
122124
**create_troubleshooting_log_kwargs(
123125
"Cannot process message because channel is closed. Message will be requeued by RabbitMQ",

0 commit comments

Comments
 (0)