Closed andrew-sol closed 4 months ago
Thanks for the short repro, that made it easy to reproduce the issue. The auto-retry plugin did handle signals correctly while waiting between retries, but it incorrectly did not rethrow errors when actual requests were aborted.
When this plugin is used in a NestJS app, the following promise will never resolve:
Because of this the app never recompiles when you change the code.
Removing the following line makes the app behave normally:
See the reproduction repo: https://github.com/andrew-sol/grammy-runner-reproduction (
app.service.ts
file) The repo has two branches:main
andwithout-nest
.The bug is reproducible only on the
main
branch. Thewithout-nest
branch contains the same setup but without the NestJS framework and TypeScript.Related: https://github.com/grammyjs/runner/issues/22