UTF-8 characters in string value causes custom event to fail


We have observed several failed custom events. After a lot of debugging, we found the cause. All of the failed event payloads include characters such as ‘ü’, ‘ç’. NewRelic Docs says The payload must be encoded as UTF-8. The payloads are failing with message JSON couldn’t be parsed because it’s syntactically invalid even if they contain valid UTF-8 characters. Is there any encoding or suggestion to prevent these errors?

POST /v1/accounts/xxx/events HTTP/1.1
Api-Key: xxx
Content-Type: application/json
Accept: application/json
Content-Length: 57
Host: insights-collector.newrelic.com
Connection: Keep-Alive
Accept-Encoding: gzip,deflate

    "account_name": "account ü",
    "eventType": "Transaction"

After sending request payload with gzip encoding resolved the issue.

Hi @oonurkuru

Thanks for reaching out and for confirming the issue has been resolved.

Wishing you a great day!