Help to fix 'Unable to locate var' response error

I created a function that hits an external API (Strava for a specific activity) and posts a few results from the response to a table.

That's working but I want to automatically trigger that action when I receive a Strava Webhook event (which I'm receiving successfully in another table I created to receive the webhooks).

So I clone the function stack from 'Functions' to use in that webhook event table, but now I get an error from Xano stating that it's unable to locate certain variables.

Any hints as to why this function stack would work as a standalone function but not when contained within a table API?

Thanks in advance![Screen Shot 2021-12-06 at 18.04.33.png]
Other
2 replies