Validation Issues and Javascript functionality's are not working

Hello everyone,
**while running the app in local the Java script event like click,change etc… functionality’s are not working in the app **

  1. I have created a new freshdesk app and passed some parameters in Iparms.json. but those are throwing the validation issue. because of this issue, I’m not able to test the app locally. please find the screen shoot…

  2. ex:

{
    "freshdesk_api_key": {
      "display_name": "Freshdesk Api Key",
      "description": "Enter your Freshdesk API key. How to find your API key: https://support.freshdesk.com/support/solutions/articles/215517-how-to-find-your-api-key",
      "type": "api_key",
      "type_attributes": {
        "product": "freshdesk"
      },
      "required": true,
      "secure": true
    },
    "subdomain": {
      "display_name": "Freshdesk Subdomain",
      "description": "Enter your freshdesk subdomain. Hint:- look url https://{subdomain}.freshdesk.com",
      "type": "domain",
      "required": true,
      "type_attributes": {
        "product": "freshdesk"
      }
    }
}

Thank you

@Konanki_Prakash
Good day!
Kindly ensure that the credentials which you entered is correct?
and are you getting any console error while installing the app in local? if so can you please share us the HRA logs to investigate further?

Thanks

Hi @Santhosh ,
I am getting some errors. please find the screen shoots


@Konanki_Prakash ,
I want the console errors and HRA logs of the configuration page because you reported validation error in installation page, the one which you gave is with app rendering,

Thanks

Hi @Santhosh ,
while running app form local the java script events (like click ,change )are not working.
Not getting any error in the configuration page console. and please find the fdk log file here .
log.zip (5.4 KB)

@Santhosh requesting you to expedite work on this issue. Our development and testing is blocked because of this. We have a hard timeline to complete a feature request for the customer.
@Raviraj FYI

@Santhosh can you please check and help us here? Our development and testing is blocked because of this. We have a hard timeline to complete a feature request for the customer.

Hi @gourav.kumar

Please whitelist the freshdesk domain in the manifest.json file and then try to install the app.

example :

{
  "platform-version": "2.0",
  "product": {
    "freshdesk": {
      "location": {
        "ticket_sidebar": {
          "url": "index.html",
          "icon": "styles/images/icon.svg"
        }
      }
    }
  },
  "whitelisted-domains":[
    "https://*.freshdesk.com"
  ]
}

please let me know if it doesn’t work.

Regards,
Mughela Chandresh

Hi @Mughela_Chandresh ,

we are whitelisting all the domains

@Konanki_Prakash

We have same set up arranged for this sample

The configuration page takes in API Key and Subdomain. It might give you chance compare you app’s code to solve the validation issues within the configuration page.

The screenshots indicate errors not relevant to your app when rendering on the ticket details page. The JS logs or errors from the app will indicate localhost:10001/ at each warning on the log. Or the alternative is to switch the context from top to filename.html on localhost:10001 from the list in the dropdown.

What kind of events are you referring to here? Is it the Events Method?

From the logs you shared

2021-10-21 14:09:06.768 +0530 [debug] (e[34miframe.jse[0m) e[31m
Responding to product with {"configs":{},"displayName":"newApp",
"product":{"freshdesk":{"location":{"ticket_sidebar":{"url":"index.html","icon":"styles/images/icon.svg"}}}},
"features":["db"],"actions":false,"omni":false,"products":["freshdesk"],"platform":"2.2","v2":[]}e

This indicates that CLI wasn’t able to find "whiltelisted-domains" key is missing from the manifest file. If you think we are wrong, can you share the zip file with enough scope for us to reproduce the issue?

2 Likes

@Konanki_Prakash,
As @Saif said, you need to whitelist the domain inorder to make it work,
even if you think it is not working after the domain is whitelisted, please share your app zip and the HRA logs of your browser so that we can investigate further.

Thanks for understanding :slight_smile:

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.