I try to add a media record in the media table but I didn’t fill the an optional field (paragraph) but it didn’t work
It popup an error that paragraph is mandatory and can’t be null however in the database schema it is optional
I guess the forest admin schema didn’t take it as optional
Cannot read properties of null (reading ‘0’)
- Project name: Omerta
- Team name: Operations
- Environment name: Development
- Agent type & version: nestJS
Do you have any code associated with your “Media”, “Paragraph” or “Article” fields that could help us better understand the cause of your problem?
I’am trying to reproduce your bug.
Please can you send all your exception stack trace ?
Like this example:
Thank you it fixed it, I just change a bit in the schema
Ok, I’m happy for you
Your body was very strange, it is anormal to receive
data:null for the paragraph. Do you have targeted the cause of this error ?
I made the media article as optional in the Media table
I’m creating an issue to improve our log instead to throw an 500 error.
Thanks for the report.
We have patched your problem on the agent. No more error when the front sends an empty relation
Have a nice day.