question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] $onRoutesInit takes a long time since 6.59.6

See original GitHub issue

Information

  • 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:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:29 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Romakitacommented, Sep 2, 2021

Hooo… sorry, I forgot to release the fix ^^’ My bad…

1reaction
jpc-dnrcommented, Sep 2, 2021

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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found