This message was deleted.
# community-help
s
This message was deleted.
j
You would have to upgrade the cluster’s memory by going to Cluster Configuration > Modify to fix this error.
s
ok, @Jason Bosco, We are currently using a 0.5GB RAM staging environment. Can you recommend an appropriate memory size?
@Jason Bosco / @Kishore Nallan "How should I handle null values in an array of objects? I'm encountering errors related to this issue example error: "RequestMalformed: Request failed with HTTP code 400 | Server said: Field
prices.max.endDate
must be an array of string."
k
Null values must be marked as optional in the schema
As for memory usage, if you are just hitting into limit sometimes, a move to the next plan will be sufficient.
s
Could you please send me the attribute tag? example my schema params:
Copy code
{
  "facet": true,
  "index": true,
  "infix": false,
  "locale": "",
  "name": "prices.max.endDate",
  "optional": true,
  "sort": false,
  "type": "string[]"
}
k
Hmm that field is already set optional?
s
Yes, but I encounter an error when updating documents if
prices.max.endDate
is
null
at that time.
k
Please share a reproduceable code snippet that we can try running to replicate the issue.