ERROR: The data in "Headers" is no valid JSON. Set Body Content Type to "RAW/Custom" for XML or other types of payloads

Hello, everyone. I’m trying to send HTTP Request.

But, I get error “ERROR: The data in “Headers” is no valid JSON. Set Body Content Type to “RAW/Custom” for XML or other types of payloads”.

I don’t understand why it appears.

{
  "content": "Hello, World!",
  "tts": false,
  "embeds": [{
    "title": "Hello, Embed!",
    "description": "This is an embedded message."
  }]
}

I wrote Content-Type: application/json in the header, but that didn’t work either.

Please help.

1 Like

Hi @Artem

Your header is not in a json format. Make sure to add json format like you also have on the body :wink:

There is a chance putting { } around it would be enough

3 Likes

It worked! Thanks a lot!

2 Likes