April 5, 2023, 2:06pm
Accessing a record details
When I click on a record I can’t access it, it displays that it is not found, however in all my lists and segments I can see all the data
See the records details
Warning 404 GET
Record does not exists
NotFoundError: Record does not exists
And same in UI
Project name: VOGZ - Backoffice
Environment name: development and staging (also prod though, it just creates issues everywhere)
Agent (forest package) name & version:
“ @forestadmin/agent”: “^1.8.8”,
“ @forestadmin/datasource-mongoose”: “^1.3.4”,
“ @forestadmin/plugin-flattener”: “^1.0.16”, Database type: mongodb with mongoose and expresses
Recent changes made on your end if any: normal model updates, nothing really different
do you observe this behavior on all collection? On all record?
April 5, 2023, 2:46pm
Hey, thanks for helping again.
Yes it is on all the records
Can you share with us the model definition, in order to try to reproduce?
Can you share to the request payload sent to the agent please?
EDIT: which version of mongoose do you use?
April 5, 2023, 3:50pm
Believe it or not, after reading your message I upgraded mongoose, the schema was updated out of this (the diff was a String as a type in place of a Json).
And it fixed it!
Thanks! Should pay more attention to packages versions… Is there anywhere where you might publish release notes with potential breaking changes?
Out of curiosity can you give me the version you are using before and now?
April 5, 2023, 4:17pm
- "mongoose": "^5.12.2",
+ "mongoose": "^7.0.3",