當我將bot代碼推向天藍色時,它是成功的。我測試Microsoft Bot Framework錯誤 - InternalServerError {「Message」:「發生錯誤。」 }
我更新了我的web.config文件中使用正確的憑據推動它使用節點app.js天青之前它的工作
var builder = require('botbuilder');
var connector = new builder.ConsoleConnector().listen();
var bot = new builder.UniversalBot(connector);
bot.dialog('/', [
function (session) {
builder.Prompts.text(session, 'Hi! What is your name?');
},
function (session, results) {
session.send('Hello %s!', results.response);
}
]);
當我看着蔚藍的日誌我得到以下信息
2016-11-17T13:31:12.880 Executing: 'Functions.messages' - Reason: 'This function was programmatically called via the host APIs.'
2016-11-17T13:31:12.880 Function started (Id=22f4fffb-ad0d-4b54-b86f-dd895c098910)
2016-11-17T13:31:12.880 Function completed (Failure, Id=22f4fffb-ad0d-4b54-b86f-dd895c098910)
2016-11-17T13:31:12.880 A ScriptHost error has occurred
2016-11-17T13:31:12.880 Error: Implement me. Unknown stdin file type!
at process.getStdin [as stdin] (internal/process/stdio.js:82:15)
at ConsoleConnector.listen (D:\home\site\wwwroot\messages\node_modules\botbuilder\lib\bots\ConsoleConnector.js:11:60)
at Object.<anonymous> (D:\home\site\wwwroot\messages\index.js:3:48)
at Module._compile (module.js:556:32)
at Object.Module._extensions..js (module.js:565:10)
at Module.load (module.js:473:32)
at tryModuleLoad (module.js:432:12)
at Function.Module._load (module.js:424:3)
at Module.require (module.js:483:17)
at require (internal/module.js:20:19)
2016-11-17T13:31:12.880 Function started (Id=22f4fffb-ad0d-4b54-b86f-dd895c098910)
2016-11-17T13:31:12.880 Function completed (Failure, Id=22f4fffb-ad0d-4b54-b86f-dd895c098910)
2016-11-17T13:31:12.895 Exception while executing function: Functions.messages. mscorlib: Error: Implement me. Unknown stdin file type!
at process.getStdin [as stdin] (internal/process/stdio.js:82:15)
at ConsoleConnector.listen (D:\home\site\wwwroot\messages\node_modules\botbuilder\lib\bots\ConsoleConnector.js:11:60)
at Object.<anonymous> (D:\home\site\wwwroot\messages\index.js:3:48)
at Module._compile (module.js:556:32)
at Object.Module._extensions..js (module.js:565:10)
at Module.load (module.js:473:32)
at tryModuleLoad (module.js:432:12)
at Function.Module._load (module.js:424:3)
at Module.require (module.js:483:17)
at require (internal/module.js:20:19).
我不知道這是什麼或如何發生。
任何幫助,將不勝感激,
感謝
謝謝我今天晚些時候會嘗試這個,並回復 – user1907509
我已經按照你的步驟,我得到了未經授權。我檢查了應用程序設置並生成了MICROSOFT_APP_ID和MICROSOFT_PASSWORD_ID。我仍然收到這條消息。有什麼想法嗎? – user1907509
你在'web.config'中刪除了appid和密碼嗎? –