API Calls Failures Bug Workaround - June 18

Hey everyone,

It looks like a recent change on Bubble’s end may have introduced a bug that’s causing some API calls to fail. I’m not exactly sure what changed and if everyone was impacted, but after testing, I found that removing tabs and unnecessary whitespace from the JSON body fixed the issue for me.

Example - If this fails:

{
“user_id”: 123,
“action”: “create”,
“data”: {
“name”: “John Doe”,
“email”: “john@example.com
}
}

Try this (no tabs or extra formatting):

{"user_id":123,"action":"create","data":{"name":"John Doe","email":"john@example.com"}}

So if you’re encountering unexpected errors with API calls, try minifying your JSON—remove all tabs and format it compactly.

This should just be a workaround, hopefully, this gives the Bubble team a useful clue to investigate and revert the change that’s causing the issue.

Let me know if this workaround helps anyone else.

2 Likes

Just wanted to let you know — the issue seems to have been resolved on Bubble’s end (or magically :sweat_smile:). Dynamic parameters in Raw body requests are now working properly again on my side, even with extra formatting. I think your original JSON format should work fine now without needing to strip whitespace.

Really appreciate you chiming in with that suggestion — it was super helpful while the issue was active.

1 Like