500 error for email contact

Can anyone help me why I am getting
500 error for email contact API

async function sendConfirmationEmail(item) {
    console.log("send email");
    console.log(item);
 try {
 const productItem = await wixData.get('Stores/Products', item.product);
        console.log(productItem);
 await wixCrmBackend.emailContact('SBaIaH8', item.contactId, {
 'variables': {
 'productName': productItem.name,
 'userName': item.title,
 'link': url + '/backinstock/' + item._id
            }
        })
        console.log(`Email confirmation for item ${item.product} sent to ${item.contactId}`);
 return true;
    } catch (err) {
        console.error('Error in sendConfirmationEmail in backInStock.jsw -> ', err.message);
 return false;
    }
}

Console.log

“[{“title”:“indra kumar”,“product”:“5034a70b-921a-348f-110a-8fbc366aa4f9”,“contactId”:“60ec9e97-bae8-41dc-8f74-87ca9e4a9b65”,“choices”:{},”_id":“4146627d-293c-4af0-b7f3-2e22915a8d2c”,“_createdDate”:“2020-09-29T13:38:07.309Z”,“_updatedDate”:“2020-09-29T13:38:07.309Z”,“link-backinstock-title”:“/backinstock/4146627d-293c-4af0-b7f3-2e22915a8d2c”}]"

Hi Indrakumar,

I’m trying to get essentially the same thing working and am also getting a 500 error. Have you found a solution to this?

Thanks!

Too late for this but try the frontend APIs and contact wix guys