Stitch logs can show an error message, for example:
Error:
{"message":"'replace' is not a function"}
There's also a link to the Stitch function that was running when the error was triggered.
With that said, there's no full stack trace, and no line number listed for the portion of code within the stitch function that triggered the error. It would be helpful to include this line number in future error logging to make debugging easier.
To share some context as an example, the error message above was caused by a Javascript
replace
method within the function, but this
replace
method was used multiple times, and it was not apparent what logic was failing and returning the error.