in my custom app I use the request API, in dev mode everything is ok,
but when I publish the app and test the same pattern I get a 502 “Error in establishing connection”.
let body = {
assistant_id: "<redacted>",
messages: openAiMessages
};
body = JSON.stringify(body);
let response = await client.request.invokeTemplate("runAiAssistant", {
body
});
Hey @Carlo_Cecco,
Welcome to the Freshworks Developer Community!
Thanks for bringing this to our attention.
I see that you have redacted the host, I’m assuming that is a hardcoded value rather than an iparam value? Also, can you share your manifest.json with the platform version?