Error while sending an email

0
Hello. I have a problem with an email. All my emails will be send with no error but one of them gives me an JSON error in Call Rest. I checked the JSON String and there is no issue.     {"error":{"code":"BadRequest","message":"Unable to read JSON request payload. Please ensure Content-Type header is set and payload is of valid JSON format.","innerError":{"date":"2024-11-25T12:33:23","request-id":"be2255ff-4bf9-45a4-9ea2-68cb8a2205b1","client-request-id":"be2255ff-4bf9-22a4-9ea2-68cb8a9605b1"}}}
asked
2 answers
1

Hello.  

I think the error comes from the body of your template. If you use template go to your email template and check Source of the body. for example, sometime if you have an URL, you need to fix your body with ['']. 

answered
0

Hi Shahin,

1. Ensure that your JSON payload is correctly formatted or not. check in JSON validate

2. check the content type header Content-Type: application/json.

3. or check the email address or content

 

Thanks

answered