Serverless product event onContactDelete not triggering

Hello,

we have a problem with a serverless product event.
The event onContactDelete is not triggered in our sandbox environment.

I deployed the custom app in the sandbox environment for testing and also tested deleting contacts via Freshesk API with Postman.
I tested soft delete as well as hard delete. The contact is deleted, but the event is not triggered.
Other events like onContactCreate are working properly though.
I can see the log statement of my onContactCreateCallback in the admin panel (manage apps / custom apps / settings / view logs), but there is no output from onContactDeleteCallback. Therefore I assume the onContactDelete event is not triggered.
But in the event simulation at http://localhost:10001/web/test onContactDelete is acutally working!

manifest.json

{
  "platform-version": "2.3",
  "product": {
    "freshdesk": {
      "events": {
        "onAppInstall": {
          "handler": "onAppInstallCallback"
        },
        "onContactDelete": {
          "handler": "onContactDeleteCallback"
        },
        "onContactCreate": {
          "handler": "onContactCreateCallback"
        }
      },
      "requests": {
        "getContact": {},
        "updateContact": {}
      }
    }
  },
  "engines": {
    "node": "18.18.2",
    "fdk": "9.0.8"
  }
}

server.js

exports = {
  onAppInstallCallback: function(payload) {
    console.log("Logging arguments from onAppInstallevent: " + JSON.stringify(payload));
    renderData();
  },
  onContactDeleteCallback: function() {
    console.log("onContactDeleteCallback");
  },
  onContactCreateCallback: function() {
    console.log("onContactCreateCallback");
  }
};

Could you please help me finding the problem?
Thanks in advance!

Hey @84356f72367e4,
The configuration on manifest and also server.js handlers are correct, did you try deleting the contact from both API and from Freshdesk account? Do you see a success response for the APIs?

While testing on the local, it’s based on the event payload but not testing it in real-time with contacts deleting from the Freshdesk account.

Yes, I tried both ways.
I’ve used the API endpoint DELETE /api/v2/contacts/{id}/hard_delete?force=true
I get status 204 (No Content), which should signify success.
When I refresh the contact page of the deleted id, I get the message “The contact does not exist or you may not have permission”. So deleting via API is successful, but the custom app log is empty.
It’s the same with deleting in the UI (hard and soft delete).
When I then create a contact, I get the console log in the custom app log. So the onContactCreate event is triggered correctly, but the onContactDelete event is not triggered.

Is there any way to find the cause of the problem?