I’m trying to use server scripts exclusively as state for API workflows, like a variable. Even my most basic example causes an error.
Here is the workflow, after which I do a “Return Data from API” although even without that return workflow it will throw the error.
In Postman, this is returned:
“message”: “Unexpected server error, please try again later”
When I go into the server logs, there are two sequential errors:
Workflow error - ret_val.custom_type is not a function
ret_val.custom_type is not a function
Am I doing something wrong?