Cannot read properties of undefined (reading 'supported_products')

I encountered an error while changing our app’s platform version from 2.3 to 3.0.
The app cannot run due to the following issue:

C:\Users\Siva\Documents\fs-merger>fdk run
TypeError: **Cannot read properties of undefined (reading 'supported_products')**

This is my manifest.json

{
“platform-version”: “3.0”,
“modules”: {
“freshservice”: {
“location”: {
“full_page_app”: {
“url”: “index.html”,
“icon”: “styles/images/icon.svg”
}
},
“events”: {
“onTicketCreate”: {
“handler”: “onTicketCreateHandler”
},
“onAppInstall”: {
“handler”: “onAppInstallHandler”
},
“onAppUninstall”: {
“handler”: “onAppUninstallHandler”
},
“onConversationCreate”: {
“handler”: “onConversationCreateHandler”
},
“onScheduledEvent”: {
“handler”: “onScheduledEventHandler”
}
},
“functions”: {
“sendMailToAppside”: {
“timeout”: 10
}
},
“requests”: {
“iparamValidate”: {},
“groupList”: {},
“form_Fields”: {},
“getAllAgents”: {},
“getAllRoles”: {},
“ContactList”: {},
“fd_Auth”: {},
“updateFDTicket”: {},
“fullpageapp”: {},
“addNote”: {}
}
}
},
“engines”: {
“node”: “18.20.8”,
“fdk”: “9.5.2”
},
“dependencies”: {
“request”: “2.88.2”,
“axios”: “0.21.1”,
“buffer”: “5.6.0”,
“nodemailer”: “6.9.9”
}
}

{
“platform-version”: “3.0”,
“modules”: {
“common”: {
“onAppInstall”: {
“handler”: “onAppInstallHandler”
},
“onAppUninstall”: {
“handler”: “onAppUninstallHandler”
},
“onScheduledEvent”: {
“handler”: “onScheduledEventHandler”
},
“functions”: {
“sendMailToAppside”: {
“timeout”: 10
}
},
“requests”: {
“iparamValidate”: {},
“groupList”: {},
“form_Fields”: {},
“getAllAgents”: {},
“getAllRoles”: {},
“ContactList”: {},
“fd_Auth”: {},
“updateFDTicket”: {},
“fullpageapp”: {},
“addNote”: {}
}
},
“service_ticket”: {
“location”: {
“full_page_app”: {
“url”: “index.html”,
“icon”: “styles/images/icon.svg”
}
},
“events”: {
“onTicketCreate”: {
“handler”: “onTicketCreateHandler”
},
“onConversationCreate”: {
“handler”: “onConversationCreateHandler”
}
}
}
},
“engines”: {
“node”: “18.20.8”,
“fdk”: “9.5.2”
},
“dependencies”: {
“request”: “2.88.2”,
“axios”: “0.21.1”,
“buffer”: “5.6.0”,
“nodemailer”: “6.9.9”
}
}

correct format

Hey Tamil, did this get resolved?
i have the same problem & there’s not much help out there.

you’re defining a Freshdesk app manifest for the Freshworks Developer Kit (FDK), version 3.0.

I’ll correct and format your JSON properly with valid syntax, including the required supported_products field (empty if not used).

Here’s the corrected manifest.json:

{

“platform-version”: “3.0”,

“modules”: {

"common": {

  "onAppInstall": {

    "handler": "onAppInstallHandler"

  },

  "onAppUninstall": {

    "handler": "onAppUninstallHandler"

  },

  "onScheduledEvent": {

    "handler": "onScheduledEventHandler"

  },

  "functions": {

    "sendMailToAppside": {

      "timeout": 10

    }

  },

  "requests": {

    "iparamValidate": {},

    "groupList": {},

    "form_Fields": {},

    "getAllAgents": {},

    "getAllRoles": {},

    "ContactList": {},

    "fd_Auth": {},

    "updateFDTicket": {},

    "fullpageapp": {},

    "addNote": {}

  }

},

"service_ticket": {

  "location": {

    "full_page_app": {

      "url": "index.html",

      "icon": "styles/images/icon.svg"

    }

  },

  "events": {

    "onTicketCreate": {

      "handler": "onTicketCreateHandler"

    },

    "onConversationCreate": {

      "handler": "onConversationCreateHandler"

    }

  }

}

},

“engines”: {

"node": "18.20.8",

"fdk": "9.5.2"

},

“dependencies”: {

"request": "2.88.2",

"axios": "0.21.1",

"buffer": "5.6.0",

“nodemailer”: “6.9.9”

}

}

I use service_ticket as a supported_products, because I am using freshdesk app. You create a custom app in freshchat or something else you need to add those related supported_products. if you not need, leave them with empty json

Like

service_ticket:{}