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.