Hey there, I need some urgent help here. I'm currently doing a HTTP Request action.
There will be cases where the enrichment would return empty value. In this case, the HTTP Request will fail due to missing input.
Following this community discussion here, I've turn on the toggle for Remove empty values (screenshot 1)
But still my API call is retuning error for missing input.
May I know why?
The "Remove empty values" toggle should help prevent errors due to missing inputs, but there might be other issues with your JSON formatting. To troubleshoot further, could you please copy and paste your JSON body into the chat? This will help us identify any potential formatting problems, such as missing quotation marks around text or extra commas where they shouldn't be. Once we see your JSON, we can provide more specific guidance on how to fix the issue.
{
"email": "
Email Of Org Creator
",
"Company Found": "
totalFound
",
"Company Name": "
name
",
"Contact Id": "
id
",
"Email Domain Valid?": "
status
",
"Email Classification": "
Email Classification Result
",
"Email Classification Reason": "
reasoning
",
"HubSpot Website Domain Valid?": "
result
",
"HubSpot Website Domain Valid Reason": "
reasoning
",
"Apollo Website Domain Valid?": "
result
",
"Apollo Website Domain Valid Reason": "
reasoning
",
"Waterfall Website Domain Valid?": "
result
",
"Waterfall Website Domain Valid Reason": "
reasoning
",
"Apollo Company LinkedIn Profile URL": "
Apollo Linkedin URL
"
}
Here's how it looks like
Thank you for providing your JSON body. The issue likely stems from incorrect JSON formatting. Let's take a closer look:
1. Remove the extra spaces within the quotation marks for each value.
2. Remove the trailing commas at the end of each line.
3. Ensure all string values are enclosed in double quotes.
Here's a corrected version of your JSON: LBKS{ "email": "/Email Of Org Creator/", "Company Found": "/totalFound/", "Company Name": "/name/", "Contact Id": "/id/", "Email Domain Valid?": "/status/", "Email Classification": "/Email Classification Result/", "Email Classification Reason": "/reasoning/", "HubSpot Website Domain Valid?": "/result/", "HubSpot Website Domain Valid Reason": "/reasoning/", "Apollo Website Domain Valid?": "/result/", "Apollo Website Domain Valid Reason": "/reasoning/", "Waterfall Website Domain Valid?": "/result/", "Waterfall Website Domain Valid Reason": "/reasoning/", "Apollo Company LinkedIn Profile URL": "/Apollo Linkedin URL/" }LBKS
Try using this corrected JSON in your HTTP Request action. If you're still experiencing issues, please let me know.
No, I'm copy pasting the same thing as you, it's just that the formatting of Slack altered it.
My API calls were successful too whenever there is no empty field.
This thread was picked up by our in-app web widget and will no longer sync to Slack. If you are the original poster, you can continue this conversation by logging into https://app.clay.com and clicking "Support" in the sidebar. If you're not the original poster and require help from support, please post in 02 Support.