I have a strange problem that is blocking me. Hoping I can get some assistance.
I have defined an API to call a backend workflow with the purpose of returning a fairly complex json object, however when I try and capture ‘raw body text’ the field is blank.
Detail:
B.E Workflow 1 triggered from F.E, calls API defined in API connector (API 1). Parameters set to two unique ID’s only.
API1 receives the two unique IDs correctly and calls B.E workflow 2 which takes those IDs and returns 5 fields, let’s call them Name, Phone, email, postcode and type (that list will expand significantly but I’m trying to prove the concept so far).
In B.E workflow 1 I have a step to capture the raw body text from API1 and pass it off to a pdf generator service via API, it needs to be json in a string to be accepted by the endpoint.
Now comes the issue, if I try and capture the raw body text it returns a blank field (confirmed using webhook).
If I hit B.E workflow 2 using postman I get the correctly formatted full JSON object as expected.
To add further confusion if I log a field instead of raw body text then I get the value. This isn’t any good though as the 5 fields are going to expand to around 80 by the end of the implementation so I really need the raw body text.
Any ideas, suggestions, ridicule and frustrations are welcome! Hopefully I’m missing something and someone wiser than me will come along with an answer!
Can you post screenshots? In API connector, did you activate both detect request header and continue if error checkbox? Without them checked, raw body will be empty
Hi. I’ve defined the parameters manually, I did try detect but the headers I got back didn’t contain the fields I needed and as postman returns the correct data when I call the workflow having defined the parameters manually I didn’t see why that route was required
if i then point that endpoint at web-hook all I get is a null value for the relevant field suggesting that when bubble tries to send ‘raw body text’ it returns no value, despite it being available in initialisation and through postman.
To add to the above I switched to ‘detect data’ with headers ignored and the backend workflow initialises correctly, calls correctly from postman but when called from within a backend workflow returns a blank ‘raw body text’ value. I know it’s not a sequencing issue as if i set it to return a single field then that value is successfully passed through.
Any ideas welcome, very likely seems like a bubble bug
thakns Jinci. literally just typed the above reply as your message landed. wow that’s been a fun few days!! really appreciate your help, without you pointing me back down the ‘detect’ route i wouldn’t have carried on pushing at it. thanks again