[BUG] $onRoutesInit takes a long time since 6.59.6
See original GitHub issueInformation
- Version: 6.59.6
Since the upgrade to v6.59.6, the $onRoutesInit
hook is taking a long time (like 4 seconds).
We are using in our project the $onBeforeRoutesInit
and $onAfterRoutesInit
hooks but not the $onRoutesInit
.
It was working fine with v6.59.5 ($onRoutesInit
takes some milliseconds only to execute).
Is there something we are missing? How can we diagnose this issue?
Thanks!
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:29 (4 by maintainers)
Top Results From Across the Web
ONroute - We're ON it
ONroute plazas are here to make your trip across Ontario fun and convenient. Get gas, food & beverages and more, all at a...
Read more >(PDF) Combined effects of heat waves and droughts on avian ...
We found large changes in avian abundances related to 100-year extreme weather events occurring in both breeding and post-fledging periods, ...
Read more >Boston Daily Globe Newspaper Archives, Nov 24, 1874, p. 7
7 with family history and genealogy records from boston, massachusetts 1854-1922. ... About a year ago a Young Man from Seabrook who bad...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hooo… sorry, I forgot to release the fix ^^’ My bad…
The problem is not related to Ts.ED, it was related to somehow a race condition between Ts.ED and swagger-stats, because we were reading the swagger.json file in the $onReady hook to give the Swagger spec to swagger-stats.
Now we use the directly the SwaggerService service to get the OpenSpec object without relying on the swagger.json file and it works.
If you need a reproducible example, you can find it here: https://github.com/jpc-dnr/tsed-1496
Thanks!