Realm trigger error: Invalid code point

Hi,

I am getting this error continuously
Error: Invalid code point

I am trying to debug this issue but i don’t know where to check becuse it doesn’t show document id.
Please tell me what this error is about?
what can possibly generate this error?
or how do i know which document is throwing this error?

Trigger Type: Database
Operation Type: Update
Full Document: ON
Event Type: Function

Note: i am sending indexing document to elasticsearch in this trigger

Hi Nirali,

Please tell me what this error is about?

This is the error that corresponds to the log shown:

failed to lookup path for module 'supports-color': module not found: supports-color

It appears it is related to the @ elastic/elasticsearch dependency being used in the function.

or how do i know which document is throwing this error?

If the ID isn’t shown in the Realm logs it’s possible that the operation which triggered the trigger is projecting out the _id field.

Please check your MongoDB Logs on the cluster at around 19/05/2022 09:43:41.849 UTC (when error occurred) to find the update operation which would have fired the trigger.

Regards
Manny