I’d like to leverage Blockspring to run a calculation that takes data from Bubble, does math, and returns a table back to Bubble. I’ve got the sending data to Blockspring part working, however, I’m unclear how to format the response so that I can input it in Bubble.
I’ve made the block available here:
The response currently looks like this and has 3 key-value pairs (event_name, role, thanks)
1). Does Bubble need JSON back?
2). The response comes back as 3 lists, how do I get this response into Bubble?
If JSON is the correct format for a response, any thoughts on how I input this data into my database? I need it to generate 3 rows (1 per key:value pair), as opposed to putting the list into a single cell.
One idea I had was to use the webhook feature in Blockspring and POST the data to blockspring because I know how to receive a JSON response from a POST.
I was able to get the POST working in Postman, but entering the same params in Bubble throws a formatting error. Here’s that example:
Post data from Postman to Blockspring generates the response I’d expect.
But, when I put the same params in Bubble, I get a formatting error.
Why might this work in Postman but not in the Bubble Connector? Is there a way to see what Bubble is sending to Blockspring when I initialize the POST call from Bubble Connector? This is not appearing in the logs.