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
Here is a weird issue, initially loading the page https://www.plexripper.rocks/announcements works perfectly. However, when navigating away, and then returning again, will make that same fetch request fail. I have been debugging this for a few hours now, trying to pin the problem down and re-creating a stack-blitz but I can't reproduce it there.
The website is open source and the culprit can be found here:
I found this similar issue #1565, which was then fixed in #1612. This was however only for .findOne(). Maybe the .find() was overlooked as a possible problem area as well?
I also found this similair issue: #1513
I tried the fix from there by adding a .where() in between and the error was still there
Please let me know if I should provide more information, thanks!
The main difference I'm spotting here is the missing --REGEX+ in the API call that fails. Which I tracked down to query.ts. Inside the _params: jsonStringify(params) call, the Regex is supposed to be added here in the regExpReplacer. Maybe something goes wrong here, hopefully it helps narrowing down the issue.
When you enable document-driven mode, Module tries to load content that have same path as your page, and since you don't have index.md in the announcements directory, it will raise a 404 error.
Environment
Linux
v18.11.0
3.0.0-rc.13
0.6.1
npm@8.19.2
vite
srcDir
,ssr
,target
,content
,css
,build
,vite
,modules
,components
,alias
@nuxt/content@2.2.1
,@pinia/nuxt@0.4.3
,()
-
Reproduction
Steps to reproduce:
Describe the bug
Hi there,
Project link: https://github.com/PlexRipper/Docs
Here is a weird issue, initially loading the page https://www.plexripper.rocks/announcements works perfectly. However, when navigating away, and then returning again, will make that same fetch request fail. I have been debugging this for a few hours now, trying to pin the problem down and re-creating a stack-blitz but I can't reproduce it there.
The website is open source and the culprit can be found here:
Code link
I found this similar issue #1565, which was then fixed in #1612. This was however only for
.findOne()
. Maybe the.find()
was overlooked as a possible problem area as well?I also found this similair issue: #1513
I tried the fix from there by adding a
.where()
in between and the error was still therePlease let me know if I should provide more information, thanks!
Additional context
The first correct API call is the following:
Then on navigating back, the following API call is created which fails:
The main difference I'm spotting here is the missing
--REGEX+
in the API call that fails. Which I tracked down to query.ts. Inside the_params: jsonStringify(params)
call, the Regex is supposed to be added here in the regExpReplacer. Maybe something goes wrong here, hopefully it helps narrowing down the issue.Logs
The text was updated successfully, but these errors were encountered: