-
-
Notifications
You must be signed in to change notification settings - Fork 659
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
Selective ERROR [nuxt] [request error] [unhandled] [500] Invalid query error. #3088
Comments
Thanks for providing reproduction @danielju91 |
I have the same issue with a simple content sits in And as it did not work without the
This is a sample markdown:
(also tried content/game/*.md) just in case Nothing works and I only get the query error out of it. The migration docs read as if the transition would be seamless except having to adjust the query syntax, but it seems there is something else |
@farnabaz Thank you for the workaround solution. I confirm that changing I should add that this means having to change the |
@mklueh I'm not sure why you facing this error. Could you provide a reproduction? I just checked with your explanation in Stackblitz and seems fine, Check out https://stackblitz.com/edit/github-mxtmkhbd?file=content.config.ts,content%2Fgame%2Ffirst.md,app%2Fpages%2Findex.vue |
Environment
WSL Ubuntu 24.04
Node version v23.6.1
[email protected]
[email protected]
@nuxt/[email protected]
Version
3.15.4
Reproduction
https://stackblitz.com/edit/github-kvpjf65n?file=app%2Fcomponents%2Fcontent%2Fblog-posts.vue
The routes where the problem component is displayed:
Description
This behavior happens when I am using queryCollection composable to query markdown content list with ordering.
::blog-posts
to the app/content/index.md file, the component started exhibiting the following behavior:<NuxtLink>
buttons (by clicking My name, Main or Blog in the top bar), , the component works as expected.ERROR [nuxt] [request error] [unhandled] [500] Invalid query
blog-posts.vue
this symptom goes away, the above error no longer occurring upon refreshing or directly visiting the problem routes by typing in the url. The list of posts display as intended as well.(When I remove the highlighted line, the query succeeds again, regardless of method used to load the pages)
![Image](https://private-user-images.githubusercontent.com/108649063/409552639-afc30c25-4a5e-416c-a1fe-84c2bf9ca851.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxNTcyNDEsIm5iZiI6MTczOTE1Njk0MSwicGF0aCI6Ii8xMDg2NDkwNjMvNDA5NTUyNjM5LWFmYzMwYzI1LTRhNWUtNDE2Yy1hMWZlLTg0YzJiZjljYTg1MS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMFQwMzA5MDFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1lYzZiMGI1ZTBkNDFmNzc2Y2RlYTBhNmJkNzZmMTU0ZTQzYTI1N2MzZjc4YmI0ODdmZjVjMTAxMjgzNjBhYmU5JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9._c1ZIJQ2q2esCekZ9QH3HW2XTR_t0JyQxR2vdW4Qy5Y)
Additional context
No response
Logs
The text was updated successfully, but these errors were encountered: