Cloud Code task error for typescript

I got this error when I trigger a cloud code task from the app.

var task = “lct_send_quote_email”;
** var params = {**
** “foo”: “bar”,**
** “one”: 1**
** };**
** var result =await CloudCode.callTask(task, params);**
** console.log(“Result:”, JSON.stringify(result));**
** // await journey.dialog.simple({title:“CloudTask”,message:JSON.stringify(result)});**
** await dialog(JSON.stringify(result))**

Can you please include a screenshot or the text of the error?

And then I will go out on a limb and ask if you have enabled your task for execution from ‘The App’ from the CC task settings?

Thanks @tielman and now it’s working.

Glad to hear it