Occasionally, we are getting the following error in getting list of agents API, " Invalid URL - Must be FQDN". and used this API in both ticket sidebar and full page app but we are facing this issue only on full page app,
Have you tried making the API call in Postman? Does it work there?
It looks like there might be an issue with the body you’re passing in the request. Could you please share a snippet showing how you’ve configured the request template and the data being passed? That would help us debug further.
@Thayammal1 This error appears when the API request is made with a non-standard domain or a missing domain in the URL.
Since you have used the iparam template, as long as the iparam is available when this API request is invoked and it has proper value as expected, this error will not occur.
Could you confirm if the domainName is a proper value?
Does the iparam have the protocol and no trailing slash?
Is the API request function called after the app is completely loaded? It should be called inside the onAppActivated lifecycle event.
Is this issue happening in local testing or as a custom app or both?
Could you hard-code the value for the domain and test if it works fine? If so, could you narrow down in which case defining the template fails?
This issue happening only on custom app and i also checked the domainName value and the API except the case 3, (i.e) the API call is not within the onAppActivated lifecycle event.
I will try to check the API call inside the onAppActivated lifecycle event.
Please check all the above-mentioned cases. If it still occasionally fails, please raise a support ticket with the app ID and the timestamp of the issue occurrence and our team can troubleshoot if there’s any issue on our platform.