Change STS API endpoint (temporary solution)

This commit is contained in:
Jorge Ramos 2018-08-01 02:08:45 -03:00
parent ae3a5e7b34
commit b599cb4608

View file

@ -141,7 +141,7 @@ export class GBMinService {
let options = {
url:
"https://api.cognitive.microsoft.com/sts/v1.0/issueToken",
"https://westus.api.cognitive.microsoft.com/sts/v1.0/issueToken",
method: "POST",
headers: {
"Ocp-Apim-Subscription-Key": instance.speechKey
@ -160,6 +160,8 @@ export class GBMinService {
conversationId: responseObject.conversationId
})
);
}).catch(err => {
logger.trace(`Error loading sts service: ${err}.`);
});
} else {
let error = `Instance not found: ${botId}.`;