"Failed to fetch" when sending triggered email

Is this line correct?

wixCRM.emailContact(triggerEmailID, contactId, {

Is ‘triggerEmailID’ the name of your triggered email that you have used?

Suggest you go back and read the tutorial again.