Skip to main content
All CollectionsIntegrations and EnrichmentsClay
FAQ: Why am I seeing the "failed to parse body" error when using the HTTP API enrichment?
FAQ: Why am I seeing the "failed to parse body" error when using the HTTP API enrichment?
Updated over a month ago

Failed to parse body typically means there is an error in the "Body" section of your HTTP API enrichment. Check for these common errors:

What does this error mean?

This error shows up when you send data that's not formatted correctly to the API.
โ€‹

What usually causes it?

Think of it like sending a letter with missing or wrong words. The most common mistakes are:

  • Missing quotation marks around text

  • Extra commas where they shouldn't be

  • Special characters that aren't properly formatted

How can I fix it?

Here's a simple example of wrong vs right way:
โ€‹

Wrong way:

{

name: John,

age: 30,

}

Right way:

{

"name": "John",

"age": 30

}

Quick fix tips:

  1. Make sure text is in quotes

  2. Remove extra commas at the end

  3. Double-check your data format before sending

Still having trouble?

Try pasting your data into a JSON validator website like JSONLint or ask any large language model (LLM) to fix it - they're great at spotting and fixing JSON formatting issues!

Did this answer your question?