I’ve been diving into your custom functions and I’m running into a problem which I can’t seem to figure out. Request data seems to be available locally, however when I try to run the code in production and accessing through an http client (Postman), no request data seems to be seen through the events argument.
I have been able to get the function working locally with 8base invoke-local createUser -p mock/email.json
Where email.json looks like
{
"data": {
"email": "test@test.com"
}
}
I was successfully able to retrieve this information from the event variable from the function arguments.
However when trying to run this command in production after deploying with a request body, the events object shows no data.
I’ve tried with a request body that looks like
{
"email": "test@test.com"
}
as well as
{
"data": {
"email": "test@test.com"
}
}
Maybe I’m overlooking something of how custom functions takes in data with an http call?