Getting validation error in installation page after update to fdk9

Hey team!
I getting a validation error during installation when I enter the correct API and domain in the installation page. can someone help me and find the error in my code? This only happens during installation and not in development mode and this has happened after updating the app to fdk v9.

here is my manifest.json:

{
  "platform-version": "2.3",
  "product": {
    "freshdesk": {
      "location": {
        "ticket_top_navigation": {
          "url": "index.html",
          "icon": "styles/images/cust_view .png"
        }
      }
    }
  },

  "engines": {
    "node": "18.12.0",
    "fdk": "9.0.0"
  }
}

and here is my iparams.json:

{
  "domain": {
    "display_name": "domain",
    "description": "Please enter your domain",
    "type": "domain",
    "required": true,
    "type_attributes": {
      "product": "freshdesk"
    }
  },
  "api_key": {
    "display_name": "api_key",
    "description": "Please enter your api_key",
    "type": "api_key",
    "required": true,
    "type_attributes": {
      "product": "freshdesk"
    },
    "secure": true
  }
}

Regards,
Nasir Haidari

Hi

Do we have any update on this issue?

Have the same issue,

Am able to install the app in dev mode, but not when I have added the app to the dev portal and try to install the app for production.

Hey @Nasir_Haidari,

This only happens during installation and not in development mode and this has happened after updating the app to fdk v9.

Curious to know if the fdk run and localhost configurations page is able to successfully install and this breaks when you fdk pack and upload the app distribution file and install the custom app? Can you please share the App ID?

Can you confirm if the app uses app setup events, you have the renderData() method in place?

Can anyone from @Developer-Platform help in debugging this? Thanks!

Hey @Ansfs91,
Is this the same app or a different app?

Can you confirm if the app uses app setup events, you have the renderData() method in place? And also please do share the App ID.

Hey @zach_jones_noel !

Thanks for your reply! The app id is : 64152. It’s a Freshdesk custom app that worked before but now after updating to fdk 9 it gives this error :face_with_head_bandage:

Hey Nasir, I was the same problem this week, and I changed my request to this,
use context in the request to validate, like this

resquest.json

“schema”: {
“method”: “GET”,
“protocol”: “https”,
“host”: “<%= context.domain %>.freshdesk.com”,
“path”: “/api/v2/ticket_fields”,
“headers”: {
“Authorization”: “Basic <%= encode(context.apiKey) +‘:x’ %>”,
“Content-Type”: “application/json”
}
}

requester
const { response: reqResponse } = await client.request.invokeTemplate(‘configTicketFields’, {
context :{
domain,
apiKey,
}
});

1 Like

Hi Nasir, to confirm this behaviour: Do you see this happen in local testing (fdk run) or in production?

Hey @Fabricio_Fernandes !
Thank you for your reply but the error I got is not a request error but it is in the insatllation page.

1 Like

hey @kaustavdm & @zach_jones_noel !
That’s right this only happens when installing the app.
I finally managed to fix this error by changing Iparams.json and it works great. the error was caused by iparams.json which is different in FDK 9 compares with previous version. i got the same error even when i created Iparms via FDK genarate. :face_with_head_bandage:

old one:

new one:

4 Likes