Change STS API endpoint (temporary solution)
This commit is contained in:
parent
ae3a5e7b34
commit
b599cb4608
1 changed files with 5 additions and 3 deletions
|
@ -141,7 +141,7 @@ export class GBMinService {
|
||||||
|
|
||||||
let options = {
|
let options = {
|
||||||
url:
|
url:
|
||||||
"https://api.cognitive.microsoft.com/sts/v1.0/issueToken",
|
"https://westus.api.cognitive.microsoft.com/sts/v1.0/issueToken",
|
||||||
method: "POST",
|
method: "POST",
|
||||||
headers: {
|
headers: {
|
||||||
"Ocp-Apim-Subscription-Key": instance.speechKey
|
"Ocp-Apim-Subscription-Key": instance.speechKey
|
||||||
|
@ -160,6 +160,8 @@ export class GBMinService {
|
||||||
conversationId: responseObject.conversationId
|
conversationId: responseObject.conversationId
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
}).catch(err => {
|
||||||
|
logger.trace(`Error loading sts service: ${err}.`);
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
let error = `Instance not found: ${botId}.`;
|
let error = `Instance not found: ${botId}.`;
|
||||||
|
|
Loading…
Add table
Reference in a new issue