Error when calling the API but not in "Run & Debug" with identical inputs

I'm facing a very confusing error where with identical inputs I am able to make a successful request in the "Run & Debug" section but not able to make it work via the API on Bubble.

Here's the error:

The error seems to be within a custom function in my function stack as disabling that custom function fixes the issue.

Custom Function

Here's the step:

Here's the table it's referencing:

And just as a note, I ran the API with an empty body on both the run & debug screens as well as through Bubble.

Would love some help with this, thanks!

1
9 replies