我正在嘗試使用webhook(登錄事件)撥打我的Play!應用程序。我需要的是用戶的用戶和IP地址傳遞給方法,但我得到這個錯誤:Atlassian Confluence Webhook不打電話給Play!使用Atlassian Connect Plugin的方法
[httpclient-callbacks:thread-37]
[atlassian.webhooks.plugin.PublishTaskFactoryImpl$PublishTaskImpl] apply Unable to post the information to http://<host>:9000/geoip/login due to null
我不知道什麼是無效和沒有足夠的文件,以找出原因?請幫助。
atlassian-connect.json
:
{
"baseUrl": "${localBaseUrl}",
"key": "confluence-webhook",
"authentication": {
"type": "jwt"
},
"vendor": {
"name": "Wikistrat",
"url": "http://www.wikistrat.com"
},
"description": "Atlassian Connect add-on that connects to GeoIP2",
"name": "GeoIP2",
"lifecycle": {
"installed": "/installed",
"uninstalled": "/uninstalled"
},
"scopes": [ "READ", "WRITE" ],
"modules": {
"webhooks": [
{
"key": "confluence-webhook",
"event": "login",
"url": "geoip/login"
}
]
}
}
我已經硬編碼的PARAMS,因爲我不知道如何包含變量。
這是從播放的片段的對應的URL路徑文件:!
POST /geoip/login controllers.GeoIp.getLocation()
的getLocation()
方法讀取PARAMS和做它的東西。
2014-02-19 13:21:11,175 WARN [httpclient-callbacks:thread-29]
[atlassian.webhooks.plugin.PublishTaskFactoryImpl$PublishTaskImpl] apply Unable to post the information to http://<host>:9000/geoip/login due to null
我有節點app.js
運行(端口3000),它產生這樣的輸出::
login
{ timestamp: 1392816071138,
remoteIP: '0:0:0:0:0:0:0:1',
user: 'savbalac',
remoteHost: '0:0:0:0:0:0:0:1' }
POST /login 204 37ms
我在...\Atlassian Run Standalone\amps-standalone\target\confluence-LATEST.log
登錄時至匯合(其應觸發網絡掛接)得到這個錯誤
和confluence-latest.log
:
2014-02-19 13:21:11,176 WARN [httpclient-callbacks:thread-29]
[atlassian.webhooks.plugin.PublishTaskFactoryImpl$PublishTaskImpl] apply Unable to post the information to http://<host>:3000/login due to null
我已經打開管理頁面中的所有日誌記錄,我已經閱讀了關於Webhooks和所有示例的文檔,但仍然無處可尋。我注意到webhook上有很多未解答的問題,希望這個人會得到一個!