2016-11-17 12 views
1

ボトムコードを紺色にプッシュすると、それは成功しました。私は、正しい資格情報を使用して、私のweb.configファイルを更新Microsoft Bot Frameworkエラー - InternalServerError {"メッセージ": "エラーが発生しました。 }

それはノードをapp.js使用してAzureのためにそれをプッシュする前に働いていたテスト

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). 

私はこれが何であるか、これがどのように起こったのか分かりません。

すべてのヘルプは、私は成功し、次の手順でAzureのアプリケーションサービスへのMicrosoftボットフレームワークを展開し、

おかげ

答えて

1

をいただければ幸いです。試してみてください。

1.ボットを登録したら、Azureポータルに必要な環境変数を設定します。 NPMを使用Bot BuilderRestifyモジュール2.Get

enter image description here

app.jsという名前のファイル3.Make

npm install --save botbuilder 
npm install --save restify 

と数行のコードで挨拶。

var restify = require('restify'); 
var builder = require('botbuilder'); 

// Setup Restify Server 
var server = restify.createServer(); 
server.listen(process.env.port || process.env.PORT || 3978, function() { 
    console.log('%s listening to %s', server.name, server.url); 
}); 

// Create chat bot 
var connector = new builder.ChatConnector({ 
    appId: process.env.MICROSOFT_APP_ID, 
    appPassword: process.env.MICROSOFT_APP_PASSWORD 
}); 
var bot = new builder.UniversalBot(connector); 
server.post('/api/messages', connector.listen()); 

bot.dialog('/', function (session) { 
    session.send("Hello World"); 
}); 

4.Google Bot Frameworkのポータルにアクセスし、ボットの詳細を編集します。 Azureのデプロイメントから生成されたエンドポイントを使用し、Botアプリケーションテンプレートを使用する場合、エンドポイントへのパスを貼り付けたURLを/api/messagesに拡張する必要があることを忘れないでください。また、URLの前にHTTPの代わりにHTTPSを付ける必要があります。 enter image description here 5.ここで手順を完了したら、Bot FrameworkがBotのWebサービスと通信できることをテストして検証できます。

enter image description here

は、この情報がお役に立てば幸いです。

+0

ありがとうございます。今日は後でこれを試してみます。 – user1907509

+0

私はあなたの手順に従いました。私は無許可になります。私はアプリケーションの設定を確認し、MICROSOFT_APP_IDとMICROSOFT_PASSWORD_IDを生成しました。それでも私はこのメッセージを受け取ります。何かご意見は? – user1907509

+0

'web.config'でappidとパスワードを削除しましたか? –

関連する問題