Why back-end methods fail on received webhook but succeed when run manually/supervised

What is “undefined” error? What is the exact error log? Can you at least post part of the code (the function declaration, the returns…)