Record not found, when I click on it

Feature(s) impacted

Accessing a record details

Observed behavior

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

Expected behavior

See the records details

Failure Logs

Warning 404 GET
Record does not exists
NotFoundError: Record does not exists
And same in UI

Context

  • Project name: VOGZ - Backoffice
  • Team name:
  • 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

Hi again :wave: do you observe this behavior on all collection? On all record?

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?

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?

of course

- "mongoose": "^5.12.2",
+ "mongoose": "^7.0.3",
1 Like