-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
catch and convert all aio_pika connection exceptions #8712
Conversation
@@ -34,6 +34,7 @@ async def create( | |||
sqlalchemy.exc.OperationalError, | |||
aio_pika.exceptions.AMQPConnectionError, | |||
aiormq.exceptions.ChannelNotFoundEntity, | |||
*aio_pika.exceptions.CONNECTION_EXCEPTIONS, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are some of the errors above included in this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've just double-checked, the errors above are not included in aio_pika.exceptions.CONNECTION_EXCEPTIONS
.
changelog/8544.misc.md
Outdated
@@ -0,0 +1 @@ | |||
Catch and convert all `aio_pika` connection exceptions to subclass of `RasaException`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only in event broker creation right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup, that's where I traced the error in the Sentry stacktrace. I'll add this note to the changelog.
Can we please also ignore this one #8112 ? |
@wochinge Yup, the entire built-in |
Amazing 🚀 |
Proposed changes:
Status (please check what you already did):
black
(please check Readme for instructions)