Parsing APi Workflow

Hi!

Im using the API workflow as a webhook to receive messages from another platform, this usually works perfect and detects the data correctly but for this data structure and getting these “/” characters and bubble its not detecting the structure of the data. Below its what Im receiving. Funny fact its that if I use Integromat I receive the same message but without “/” I them call the bubble service again, but I dont want to pay for integromat+bubble.

Thanks on any ideas.

{
“body”: {
“data”: “{“event”:“INBOX”,“from”:“50672015677”,“to”:“50687010393”,“text”:“Alo”}”
},
“headers”: {
“x-forwarded-host”: “chats-app.bubbleapps.io”,
“x-forwarded-proto”: “https”,
“x-forwarded-port”: “443”,
“x-forwarded-for”: “::ffff:104.131.61.28”,
“content-type”: “application/x-www-form-urlencoded”,
“content-length”: “125”,
“connection”: “close”,
“host”: “chats-app.bubbleapps.io
}
}

Hi @rfuentesd,

I’d start by running this json through one of the online validators (eg. https://jsonformatter.curiousconcept.com/) as it doesn’t look valid. Then I’d use one of the webhook testers out there (eg. https://webhook.site/) to narrow down where the problem lies.



Looking to improve your Bubble™ skills?

Let me turn
:thinking: :tired_face: :confounded:

into
:grinning: :sunglasses: :woman_student:

Coaching and Development at https://uniqueideas.com or schedule a free intro session :gift:

Ken Truesdale
LinkedIn

Hi Mebeingken,

Thanks for the help, Im actually able to receive the json in other platform well, like integromat, I tried with webhook.site (which it didnt know and its great) and it collected correctly the data part but bubble ads these \ charatercs, below an example:

This is what I receive on webhook.site
data {"event":"MESSAGEPROCESSED","from":"50672015677","to":"5491234567890","custom_data":"your own id 1234"}

This is what I receive on bubble I have to put a screenshot because the extra \ characters disappear on the editor

So I have to use a middleware but this middleware (integromat) I would prefer not to pay.

Thanks

RF