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

Hey Max, let’s see what we can do. May I ask you to confirm the following:

  • you have an external app sending data to a Wix endpoint, using Wix-https functions (post/put)?
  • the code on the wix-side results in the “undefined” error;
  • when you run the code outside the http-function it works.

Please negate/confirm above.

Secondly, we all understand that posting complex code here is troublesome. Thing is, when we run into this kind of problems, we try to setup some test function with minimal code, to illustrate the problem to others and getting rid of (for this problem), non-relevant code.

So my question to you is: could you give us some skeleton code which triggers this problem and publish it here? Maybe we see something in the code, maybe we see something that points to a bug (that “undefined” thing has been popping up lately, but, alas, not always due to a bug): all cows are animals, but not all animals are cows.

If you can provide us with some skeleton code and some screen shots of the problem FROM that skeleton code, that would be very useful.