New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When non-existing URL is visited then "No match found for location with path" is logged 8 times #26425
Comments
Start a new pull request in StackBlitz Codeflow. |
Investigating a different issue (potential performance improvement by decreasing router resolution), I think I can accurately sum up the reasons this is occurring, and have also managed to cut it down by 50% (to 4x when rendering a 404 page): (The usage above should not cause a memory leak - so you should likely look elsewhere for it.) |
I think this is a related issue #25084? visiting wrong links causes high CPU spike, we're still experiencing it, i will test it after this fix 🙌 |
It sounds like it might be a performance issue in |
I'm not totally sure if the issue differs, but even when using nuxt 3.11.2 with vue-router 4.3.2 I still have the spam of the "No match found for location with path" errors:
I mean, I even have an error page with is rendered without any issues - so shouldn't that path be catched either way? Dependencies are all up to date and simple: "dependencies": {
"vue": "3.4.25",
"vue-router": "4.3.2"
},
"packageManager": "[email protected]",
"devDependencies": {
"@nuxtjs/i18n": "8.3.1",
"@nuxtjs/sitemap": "5.1.4",
"less": "4.2.0",
"nuxt": "3.11.2",
"nuxt-particles": "0.3.0"
} On production I even seem to have run out of memory - not sure if that correlates or not:
(That was after quite many tries to find some kind of vulnerability by some kiddo - sadly there are no timestamps. And no, there is no native stack trace) |
Any memory leak is not related to this log. However, you should not see this log in production... It is a dev-only log (that is, it's only included in the dev build of |
Environment
Reproduction
https://stackblitz.com/edit/github-bejpvy
Describe the bug
On clean installation of
Nuxt 3.11.1
I just addedpages
directory withblog.vue
. When you visit wrong URL (for example"/"
in that case) then "No match found for location" is logged exactly 8 times.I suspect that this bug causes CPU leak on my personal project as I have many non-existing URLs crawled by bots.
Additional context
There is closed issue #23539 that was probably not resolved by #25390.
Logs
The text was updated successfully, but these errors were encountered: