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
I have searched existing issues to ensure the bug has not already been reported
Fastify version
4.26.2
Plugin version
8.14.0
Node.js version
18.x
Operating system
Linux
Operating system version (i.e. 20.04, 11.3, 10)
WSL
Description
``On occasion in my app, I have been running into an issue where running fastify.swagger() silently crashes and has no output. I have encountered this issue a few times over the past month. My initial resolution to this was to break swagger doc gen up to only include selective routes by (admin or feature) and limiting the number of routes to a couple hundred was working.
I am currently encountering this issue in a route with about 50 routes, I have a few features with approximately 200 routes being handled.
What are the recommended ways to inspect what is causing the problem with-in the library? Any ideas on what may be causing fastify.swagger() to fail?
When this issue occurs, the last log console.log I see when the error occurs is "starting fastify", My error statement is never reached?
Can you provide steps to reproduce? We often need a reproducible example, e.g. some code that allows someone else to recreate your problem by just copying and pasting it. If it involves more than a couple of different file, create a new repository on GitHub and add a link to that.
Prerequisites
Fastify version
4.26.2
Plugin version
8.14.0
Node.js version
18.x
Operating system
Linux
Operating system version (i.e. 20.04, 11.3, 10)
WSL
Description
``On occasion in my app, I have been running into an issue where running fastify.swagger() silently crashes and has no output. I have encountered this issue a few times over the past month. My initial resolution to this was to break swagger doc gen up to only include selective routes by (admin or feature) and limiting the number of routes to a couple hundred was working.
I am currently encountering this issue in a route with about 50 routes, I have a few features with approximately 200 routes being handled.
What are the recommended ways to inspect what is causing the problem with-in the library? Any ideas on what may be causing fastify.swagger() to fail?
When this issue occurs, the last log console.log I see when the error occurs is "starting fastify", My error statement is never reached?
```typescript
try {
//Save Swagger Docs
await makeDir("./doc");
console.log("starting fastify");
await fastify.ready();
} catch (err) {
console.error("Swgger Gen Error", err);
}`
Link to code that reproduces the bug
No response
Expected Behavior
I would expect to be able to get an error message when my fastify.swagger fails, instead the process closed.
The text was updated successfully, but these errors were encountered: