Issues Encountered with FDK

Hi,

I would like to bring the following issues to your attention regarding the FDK:

  1. The fdk validate command does not seem to work as expected. I am able to register modules both inside and outside the modules section without any errors being thrown by the FDK. Additionally, sometimes the sample payload is returned as empty ({}).

  2. Despite following the documentation, the fdk validate command still does not throw any errors when registering modules outside the modules section. Many community members have suggested replacing the modules as a workaround, which contradicts the official documentation.

  3. Even when events are correctly registered in the proper format within the manifest file, the web test page shows an alert stating “no events registered.”

  4. When attempting to register app setup events under the common module in version 3.0, an error occurs.

Could you kindly investigate these issues and provide guidance on resolving them?

Thank you for your assistance.

Hi @Bene_Immanuel,

Could you share the FDK version that you’re using? If it’s less than the latest version, could you upgrade to the latest version and see if it works?

Could you show the sample manifest file for the app setup event error that you have mentioned?

If you encounter any trouble with the other issues you mentioned, please post your requirements, and we can check for a solution.

We will also check why it doesn’t throw any validation error for defining events outside the modules attribute.

Hi @Raviraj

Thank you for pitching in!

My current Fdk version is 9.2.1.

Thank you for your suggestions. Let me upgrade to the xlatest version and try this.

My manifest file:

{
  "platform-version": "3.0",
  "modules": {
    "common": {
      "events": {
        "onAppInstall": {
          "handler": "onAppInstall"
        }
      },
      "location": {
        "full_page_app": {
          "url": "index.html",
          "icon": "icon.svg"
        }
      },
      "requests":{
        // requests
      },
      "functions": {
        // functions
      }
    },  
    "support_ticket": {},
    "chat_conversation": {
      "events": {
        "onMessageCreate": {
          "handler": "onMessageCreateCallback"
        }
      }
    }
  },
  "engines": {
    "node": "18.16.0",
    "fdk": "9.1.3"
  }
}

Hope this helps!

Let me try and update you.

Thank you.

Hi @Raviraj

I updated the version to 9.3.0.

But I get this error…

Thank you.

Hi @Raviraj,

Greetings!

Were you able to find any?

Thank you.

Hi @Bene_Immanuel,

I have tried an app with manifest.json file with the same FDK version (9.3.0). It works fine without any errors.

I just changed the icon URL to the right location, like this (styles/images/icon.svg), as it threw an error. Otherwise, no others were thrown.

If you still face issue, could you uninstall FDK cleanly and install it afresh with latest version again and try?

Sure, @Raviraj

Will try and update you.

Thank you.

Hi @Raviraj

I have tried it multiple times, I still face this issue

Thank you.