3
請參閱文章https://blog.botframework.com/2017/06/19/Load-Testing-A-Bot/以測試bot。 即時通訊我試圖獲得一個accessToken,但我得到一個500.如果我從代碼運行模擬器相同的情況發生。下載的模擬器工作正常。BotFramework模擬器刷新訪問令牌失敗,狀態碼爲:500
{
"error": "server_error",
"error_description": "AADSTS70002: Error validating credentials.\r\nTrace ID: 06f655dd-dc88-49ec-a429-1c86fc1a1b00\r\nCorrelation ID: 070d67cc-361f-45ad-a0bb-d07d5d1e73f4\r\nTimestamp: 2017-07-31 00:54:46Z",
"error_codes": [
70002
],
"timestamp": "2017-07-31 00:54:46Z",
"trace_id": "06f655dd-dc88-49ec-a429-1c86fc1a1b00",
"correlation_id": "070d67cc-361f-45ad-a0bb-d07d5d1e73f4"
}
以獲得訪問令牌的過程發佈到https://login.microsoftonline.com/botframework.com/oauth2/v2.0/token與
x-www-form-urlencoded values:
grant_type=client_credentials
client_id= <YOUR MSA APP ID>
client_secret = <YOUR MSA APP SECRET>
scope = <YOUR MSA APP ID>/.default
注:模擬器的當地建造的版本,用新的克隆,也有同樣的問題,而下載版本正確連接
指定添加你如何試圖獲得的accessToken請(進程/代碼) –
@NicolasR在我的編輯中回答 – Nicolas