Unable to run my first app - iparam issue

can i know in which way can i run the project when i run the command fdk run i am getting this
Please ensure that the following are addressed for quick review process.
[WARN] iparam_test_data.json is deprecated, to test the installation page, visit - http://localhost:10001/custom_configs
Starting local testing server at http://*:10001/
Append ‘dev=true’ to your Freshdesk account URL to start testing
e.g. https://domain.freshdesk.com/a/tickets/1?dev=true
Quit the server with Control-C.

when i visited the page at the bottom i am getting install clicking install i am getting this
TypeError: Cannot read property ‘message’ of undefined

Installation Page

Hi @pavuluri_jagadeesh,

Getting WARN message is not a problem. If you remove that iparam_test_data.json inside config folder, you will not get the warning message.

Are you using iparams.json or iparams.html inside config folder?
You can have anyone of those two files, but not both the files.

If you are using iparams.json, then you need enter the required input fields. If not it will throw the error.

If you are using iparams.html, then there should be three default functions.

  • getConfigs()
  • postConfigs()
  • validate()

While clicking the install button, Freshworks platform expects a boolean value should be returned from validate().
If true is returned, then the app will get installed.
If false is returned, then the app will notify the validation error message.
If none of the boolean value is returned, then the app will through the error message "Cannot read property ‘message’ of undefined"

Please refer this link for more details on this.

I hope this helps you.

3 Likes

sir i removed iparam_testdata_.json still i am not able to get installation page parameters

Hi @pavuluri_jagadeesh

Did you install the app successfully? If yes, then only you can get installation parameter values. Please click here to know how to get installation parameter values.