You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there an existing issue that is already proposing this?
I have searched the existing issues
Potential Commit/PR that introduced the regression
No response
Versions
8.0.1 -> 9.0.0
Describe the regression
Hi,
I recently upgraded @nestjs/mongoose to 9.0.0 and mongoose to 6.0.9.
Since then mongoose errors are not being caught. If there is any exception being thrown during establishing connection it results in unhandled promise rejection. In the snippet below I set retryAttempts to 10, but there is unhandled promise rejection after 1st failed connection attempt and there are no further attempts.
I expect that in case of connection error Mongoose will retry connection according to 'retryAttempts' option and will not cause unhandled promise rejections.
Other
No response
The text was updated successfully, but these errors were encountered:
Did you read the migration guide?
Is there an existing issue that is already proposing this?
Potential Commit/PR that introduced the regression
No response
Versions
8.0.1 -> 9.0.0
Describe the regression
Hi,
I recently upgraded @nestjs/mongoose to 9.0.0 and mongoose to 6.0.9.
Since then mongoose errors are not being caught. If there is any exception being thrown during establishing connection it results in unhandled promise rejection. In the snippet below I set retryAttempts to 10, but there is unhandled promise rejection after 1st failed connection attempt and there are no further attempts.
Minimum reproduction code
Here is full reproduction repository: https://github.com/ukito-pl/nest-mongoose-bug
Expected behavior
I expect that in case of connection error Mongoose will retry connection according to 'retryAttempts' option and will not cause unhandled promise rejections.
Other
No response
The text was updated successfully, but these errors were encountered: