Schema read error

Feature(s) impacted

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

Observed behavior

It popup an error that paragraph is mandatory and can’t be null however in the database schema it is optional

Expected behavior

I guess the forest admin schema didn’t take it as optional

Failure Logs

Cannot read properties of null (reading ‘0’)

Context

  • Project name: Omerta
  • Team name: Operations
  • Environment name: Development
  • Agent type & version: nestJS

Hello @alin,

Do you have any code associated with your “Media”, “Paragraph” or “Article” fields that could help us better understand the cause of your problem?

Kind regards,
Florian

I just have the schema



Hello,
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 :slight_smile:
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.

Hello,
We have patched your problem on the agent. No more error when the front sends an empty relation :slight_smile:
Have a nice day.