0

我正在尝试运行示例 Jira add-on。我已经创建了credentials.json文件并运行npm inode app.js.

但我有installed事件的问题。这是nodejs日志:

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

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

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

谢谢!

4

1 回答 1

0

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

于 2018-03-28T15:26:44.807 回答