Atlassian-connect:安装'错误事件

时间:2017-12-19 15:10:38

标签: node.js macos jira atlassian-connect

我试图运行example Jira add-on。 我创建了credentials.json文件并运行了npm inode app.js

但我遇到installed事件的问题。这是nodejs log:

Watching atlassian-connect.json for changes
Add-on server running at http://MacBook-Air.local:3000
Initialized sqlite3 storage adapter
Local tunnel established at https://a277dbdf.ngrok.io/
Check http://127.0.0.1:4040 for tunnel status
Registering add-on...
GET /atlassian-connect.json 200 13.677 ms - 784
Saved tenant details for 608ff294-74b9-3edf-8124-7efae2c16397 to database
{ key: 'my-add-on',
  clientKey: '608ff294-74b9-3edf-8124-7efae2c16397',
  publicKey: 'MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCtKxrEBipTMXhRHlv9zcSLR2Y9h5YQgNQ5vpJ40tF9RmuIzByjkKTurCLHFwMAWU6aLQM+H+Z8wAlpL9AVlN5NKrEP8+a3mGFUOj/5nSJ7ZWHjgju0sqUruyEkKLvKuhWkKkd9NqBxogN0hxv7ue5msP5ezwei/nTJXmnmA5qOAQIDAQAB',
  sharedSecret: 'LfT9elHM7iHkto5pHr+MnpH0SR1ypunIDoCyt6ugVJ1Q4hWHurG8k5DjVzLcvT2C98DDbiJiA89VNB0e3DiUvQ',
  serverVersion: '100075',
  pluginsVersion: '1.3.407',
  baseUrl: 'https://gleb-olololololo-22.atlassian.net',
  productType: 'jira',
  description: 'Atlassian JIRA at https://gleb-olololololo-22.atlassian.net ',
  eventType: 'installed' }
POST /installed?user_key=admin 204 51.021 ms - -
Failed to register with host https://gleb-olololololo-22%40yopmail.com:gleb-olololololo-22@gleb-olololololo-22.atlassian.net (200)
The add-on host did not respond when we tried to contact it at "https://a277dbdf.ngrok.io/installed" during installation (the attempt timed out). Please try again later or contact the add-on vendor.
{"type":"INSTALL","pingAfter":300,"status":{"done":true,"statusCode":200,"contentType":"application/vnd.atl.plugins.task.install.err+json","errorMessage":"The add-on host did not respond when we tried to contact it at \"https://a277dbdf.ngrok.io/installed\" during installation (the attempt timed out). Please try again later or contact the add-on vendor.","source":"https://a277dbdf.ngrok.io/atlassian-connect.json","name":"https://a277dbdf.ngrok.io/atlassian-connect.json"},"links":{"self":"/rest/plugins/1.0/pending/80928cb9-f64e-42d0-9a7e-a1fe8ba81055","alternate":"/rest/plugins/1.0/tasks/80928cb9-f64e-42d0-9a7e-a1fe8ba81055"},"timestamp":1513692335651,"userKey":"admin","id":"80928cb9-f64e-42d0-9a7e-a1fe8ba81055"}
Add-on not registered; no compatible hosts detected

我在Google上查看了大量信息,但没有找到答案。

更多细节,可以帮助您回答。

突然发生了。它工作正常,但大约1周前我开始得到这个错误,无法解决它。所以我没有改变任何东西,只是再次运行加载项,就像我每天都做的那样。

如果我尝试手动上传附加组件,我在终端

中收到错误
GET / 302 17.224 ms - 0
GET /atlassian-connect.json 200 2.503 ms - 783
Found existing settings for client 608ff294-74b9-3edf-8124-7efae2c16397. Authenticating reinstall request
Authentication verification error: 401 Could not find authentication data on request
POST /installed?user_key=admin 401 22.636 ms - 45

最可能的原因(我在谷歌找到的)是我的服务器时间错误。但是我本地机器上的时间是正确的(至少对我的时区而言)。

有人对这个问题有任何想法吗?

谢谢!

1 个答案:

答案 0 :(得分:0)

我随意地发生了这件事。它会工作,然后运行npm start,我会得到错误。由于我现在没有使用数据库,所以我只是删除了对juggling-sqlite数据库的所有引用。这是package.jsonpackage-lock.jsonconfig.json,我刚删除了store.db。这让它对我有用。非常令人沮丧的是,这种情况发生了,不能确定更好的解决方法。