Unable to get console logs in Serverless Logs

Hi,
I was trying to get the created contact payload in Serverless Logs when OnContactCreate Event is trigger.
But when the event is triggered it is not showing any logs in the Serverless Logs. It is showing “There are no logs for the last 1 hour.” from the past hour.

Can you let us know why the issue is coming?

Thanks,
Parimala.

Hi Parimala,

Can you share the snippet of onContactCreate handler from server.js, just to ensure we have logged the args like below snippet

  handler: function (args) {
    console.log(JSON.stringify(args));
  }

Also to help us debug better, can you share your app id ? How to obtain App ID from the Developer Portal?

Hi Raghu Murugesan,

Thanks for the reply.

APP ID : 30689
App Name: contact_create_increment

Here is the app link:

Thanks,
Parimala.

Hi Parimala,

Thanks for the information, We have analysed server.js and found comment lines at the end of file was causing inconsistence behaviour and executions were erroring out, Hence no logs were found in the gallery.

To unblock this for now can you update the app without comment lines at the end of file and check for execution logs.

Meanwhile we will take the request to backend team for addressing the issue.

1 Like

Hi Raghu Murugesan,

Thanks for the Solution, My issue has resolved.

Thanks,
Parimala.

1 Like