Webhook sending but still says JSON incorrect?

Hi there,

I built a workflow and finally I want to send a message to Pumble (similar to Slack), but I am using a HTTP post request because otherwise it’s not supported.

I copied the curl and the http address as instructed, and it’s all set up, and the test message is successfully sending but it’s still giving me an error that JSON is incorrect.

How/why is this happening and how do I fix that?

Additionally, how do I simplify this http request or even edit the text I receive ?

The message is about the response. If the service is returning something that cannot be parsed as JSON (like plain text, html, or xml), that might be the cause. What does the response body look like when you make the request with curl or postman? Does it change anything if you add a request header with "Accept": "application/json"?

Hi @hubschrauber I managed to get this working and bypass the JSON body error by turning the response into text. I did this with chatgpt’s suggestion, but I actually do not know why this worked. Would you be able to explain this to me?

Without seeing the actual raw response, I couldn’t say for sure, but the service is probably returning something that can’t be parsed as JSON.

If you are curious, you could capture the raw response body by making the request with the curl command, and then examine it in VisualStudioCode, or an online JSON Editor

1 Like

This is a duplicate topic:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.