I’m building a custom app, and in that app, sometimes the app.initialized() was not working. My code was not executed after app.initialized(), and I am not able to get the client object.I didn’t get the errors from that line.
client initialization
document.onreadystatechange = async function () {
if (document.readyState === "interactive") renderApp();
};
async function renderApp() {
console.log("yess");
try {
console.log("Try");
let _client = await app.initialized();
console.log(_client);
} catch (err) {
console.log("catch");
errorHandler(err, "Something went wrong. Please contact administrator");
}
}
I didn’t see anything about failed client loading.
I already added the try-catch block; you can see that code on the first command. If I should add more try-catch blocks, can you tell me where I should add them?
I couldn’t reproduce the issue using the same code on Freshdesk. Anyway, I have created a support ticket to troubleshoot this issue further by the team and respond back to you.
Please reply in the respective email thread for this ticket for further communication. Thanks.
I have created a support ticket on your behalf here - #15832266
Could you please respond to them via email with the required details to troubleshoot further?