Issue with mismatched request body with x-www-form-urlencoded data

This topic was automatically generated from Slack. You can find the original thread here.

Brian Anderson : Hi everyone. Would it be possible for someone to help me, please? I’ve been stumped on this issue for hours!

Essentially I’m trying to POST data to a Pardot form handler via Pipedream (image1). I’m getting a 200 response (so it’s being handled “correctly” by Pardot). But I’m being told that I need to include the email field (image2), which I think I am doing! The confusing thing is that when I post the same request from Postman (image3), everything works fine! :exploding_head::man-shrugging:

I’ve been trying to toggle all kinds of Postman settings to get it to “fail” in the same was as Pipedream is, but to no avail — Postman always succeeds!

Does anyone have any ideas why Pipedream would be failing while Postman works OK (and what to do about it)?

Thanks so much! :pray:

img3.png

Dominik Fischer : Hey Brian, I really don’t know if this helps but sometimes it works for me to JSON.stringify() the payload.

Brian Anderson : Thanks for the suggestion , but I still couldn’t get it to work. :white_frowning_face:

Jonathon Hill : You’re reporting x-www-form-urlencoded, but your request body is in the wrong format and does not match that header. See URL-Encoding Bodies | Axios Docs

Brian Anderson : I’m only just getting round to fixing this , and you’ve absolutely nailed the issue! Thank you so much. You’ve no idea how long I struggled with that.
Thanks again.