Error parse specific environment into known PureCloud environment

Hello,

We are facing an issue. When we are trying to use one of our products on AppFoundry (let's say for trial purposes) from the environment cac1.pure.cloud (Canada) we are getting an error before the first page of installation appears. It crashes on the loading icon and the error says is:
"Could not parse 'cac1.pure.cloud' into a known PureCloud environment".
We hadn't encountered a similar issue before, using different environments.

Has anything changed on Genesys Cloud side and how does it handle environment?
if not, could you assist me why this might happen?

Thank you!

It sounds like the app you're using may not support the Canada region. The value you're using looks familiar to me, but the application would have to be coded to recognize it. You can find the list of Genesys Cloud regional URLs here: https://developer.genesys.cloud/api/rest/. I would recommend contacting the app's publisher for assistance.

Hello Tim,

Thank you for your answer.
We are the publishers and developers of the app.

We have the following method (region is assigned as the pcEnvironment variable):

function setRegion(region) {
if (region == 'mypurecloud.com') {
document.getElementById("region").value = "us-east-1";
} else if (region == 'usw2.pure.cloud') {
document.getElementById("region").value = "us-west-2";
} else if (region == 'cac1.pure.cloud') {
document.getElementById("region").value = "ca-central-1";
} else if (region == 'mypurecloud.de') {
document.getElementById("region").value = "eu-central-1";
} else if (region == 'mypurecloud.ie') {
document.getElementById("region").value = "eu-west-1";
} else if (region == 'euw2.pure.cloud') {
document.getElementById("region").value = "eu-west-2";
} else if (region == 'apne2.pure.cloud') {
document.getElementById("region").value = "ap-northeast-2";
} else if (region == 'mypurecloud.com.au') {
document.getElementById("region").value = "ap-southeast-2";
} else if (region == 'mypurecloud.jp') {
document.getElementById("region").value = "ap-northeast-1";
}
}

and the error appears here:

clientApp = new ClientApp({
pcEnvironment: pcEnvironment
});

We also have this block of code regarding to pcEnvironment:

let pcLanguage = localStorage.getItem(appName + ':language') ||
config.defaultLanguage;
let pcEnvironment = localStorage.getItem(appName + ':environment') ||
config.defaultPcEnvironment;

Have we set the region wrong?

Ah sorry, I misunderstood your situation. I've asked someone from the client apps sdk team to have a look. In the meantime, can you confirm what version of the client app sdk package you're using? If it's not the latest version (2.2.0), are you able to reproduce this issue using the latest version?

No, actually we are using 1.3.0.
So the error is comes from the fact we are using an older version?

Yes, 1.3.0 predates the existence of the Canada region. Can you confirm that using the latest version resolves the issue for you?

Hi Tim,

using the latest version (2.2.0) resolves the issue!
Thank you for your help!

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