2017-03-08 2 views
1

私はdreamhouseサンプルアプリケーションをインストールして、https://github.com/dreamhouseapp/dreamhouse-bot-messengerに従ってメッセンジャーボットで動作させようとしています。私は指示に従ったが、私はherokuとsalesforceに接続することはできなかった。私のHerokuのログは私がSalesforceの接続アプリで正しいのOAuth URLを入力するか見当がつかないDreamhouseサンプルアプリのインストールで正しいoauthurlを入力する方法は?

2017-03-08T14:50:53.663575+00:00 heroku[web.1]: State changed from down to starting 
 
2017-03-08T14:50:55.421132+00:00 heroku[web.1]: Starting process with command `npm start` 
 
2017-03-08T14:50:57.961964+00:00 app[web.1]: > [email protected] start /app 
 
2017-03-08T14:50:57.961938+00:00 app[web.1]: 
 
2017-03-08T14:50:57.961965+00:00 app[web.1]: > node server.js 
 
2017-03-08T14:50:57.961965+00:00 app[web.1]: 
 
2017-03-08T14:50:58.609162+00:00 app[web.1]: Express server listening on port 51979 
 
2017-03-08T14:50:58.644820+00:00 app[web.1]: end of file 
 
2017-03-08T14:50:59.133013+00:00 heroku[web.1]: State changed from starting to up 
 
2017-03-08T14:50:59.669067+00:00 app[web.1]: Authentication error 
 
2017-03-08T14:50:59.672167+00:00 app[web.1]: { Error: invalid_grant - authentication failure 
 
2017-03-08T14:50:59.672169+00:00 app[web.1]:  at Request._callback (/app/node_modules/nforce/index.js:865:15) 
 
2017-03-08T14:50:59.672170+00:00 app[web.1]:  at Request.self.callback (/app/node_modules/request/request.js:186:22) 
 
2017-03-08T14:50:59.672170+00:00 app[web.1]:  at emitTwo (events.js:106:13) 
 
2017-03-08T14:50:59.672171+00:00 app[web.1]:  at Request.emit (events.js:191:7) 
 
2017-03-08T14:50:59.672172+00:00 app[web.1]:  at Request.<anonymous> (/app/node_modules/request/request.js:1081:10) 
 
2017-03-08T14:50:59.672173+00:00 app[web.1]:  at emitOne (events.js:96:13) 
 
2017-03-08T14:50:59.672173+00:00 app[web.1]:  at Request.emit (events.js:188:7) 
 
2017-03-08T14:50:59.672174+00:00 app[web.1]:  at IncomingMessage.<anonymous> (/app/node_modules/request/request.js:1001:12) 
 
2017-03-08T14:50:59.672176+00:00 app[web.1]:  at emitNone (events.js:91:20) 
 
2017-03-08T14:50:59.672176+00:00 app[web.1]:  at IncomingMessage.emit (events.js:185:7) 
 
2017-03-08T14:50:59.672177+00:00 app[web.1]:  at endReadableNT (_stream_readable.js:974:12) 
 
2017-03-08T14:50:59.672175+00:00 app[web.1]:  at IncomingMessage.g (events.js:291:16) 
 
2017-03-08T14:50:59.672178+00:00 app[web.1]:  at _combinedTickCallback (internal/process/next_tick.js:74:11) 
 
2017-03-08T14:50:59.672179+00:00 app[web.1]:  at process._tickCallback (internal/process/next_tick.js:98:9) statusCode: 400 }

...ここにあります。 私が何かを見逃してしまった場合のために、readmeの手順を繰り返します。私は指示に従ったことを意味する。私が逃したものはありますか?

+0

接続アプリケーションを使用できるようになるまでに10分かかることがあります。それが問題だろうか? –

答えて

0

1つはIPリラクゼーションです。デフォルトでは、Salesforceは、IPリラクゼーション設定が[IP制限を強制する]に設定されている新しい接続アプリを設定します。これは、すべてのIP制限を考慮に入れ、それらを強制することを意味します。 Dreamhouseのデモで学んでいる間は、IPの制限を緩和するだけかもしれません。

IP制限でこの問題を解決するには、接続しているアプリページで[管理]を選択します。

「ポリシーの編集」ページで、「IPリラクゼーション」を「リラックスIP制限」に変更します。

ページを保存します。

スラックボットを再試行してください。

これはおそらく問題です。

関連する問題