我正在尝试安装dreamhouse示例应用程序,并使其与信使机器人根据https://github.com/dreamhouseapp/dreamhouse-bot-messenger的工作。我按照指示操作,但我无法连接到heroku和salesforce。我的heroku日志在这里..
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]: > messengerforce@1.0.0 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 }
我不知道如何在salesforce连接的应用程序中输入正确的oauth url。我重复自述文件中描述的过程,以防我遗漏了什么。我是说,我是按照指示去做的。我有没有遗漏什么。
发布于 2018-01-12 07:18:08
一个答案是IP放宽。默认情况下,Salesforce会将新连接的应用程序的IP松弛配置设置为“强制IP限制”。这意味着要考虑所有的IP限制并强制执行它们。当您使用Dreamhouse演示学习时,您可能只需要放宽IP限制。
若要通过IP限制来解决此问题,请在已连接的应用程序页面上选择“管理”。
在“编辑策略”页面上,将“IP放宽”更改为“放宽IP限制”。
保存页面。
重试你的Slack机器人。
这可能就是问题所在。
https://stackoverflow.com/questions/42675090
复制相似问题