Hello! I'm trying to register my add-on on my Jira Cloud instance using atlassian-connect-express.
The error:
Failed to register with host https://myinstance.atlassian.net/ (200)
The app host returned HTTP response code 404 when we tried to contact it during installation. Please try again later or contact the app vendor.
{"type":"INSTALL","pingAfter":300,"status":{"done":true,"statusCode":200,"contentType":"application/vnd.atl.plugins.task.install.err+json","subCode":"connect.install.error.remote.host.bad.response.404","errorMessage":"The app host returned HTTP response code 404 when we tried to contact it during installation. Please try again later or contact the app vendor.","source":"https://4defe1dd.ngrok.io/atlassian-connect.json","name":"https://4defe1dd.ngrok.io/atlassian-connect.json"},"links":{"self":"/rest/plugins/1.0/pending/a337ce9e-5679-4335-bb37-7a8134816200a","alternate":"/rest/plugins/1.0/tasks/a357ce9e-5679-4335-bb37-7a81a816200a"},"timestamp":1583276979323,"accountId":"5dc97a200e14300dd49f1e9a","id":"a337ce9e-5679-4335-bb37-7a81a416200a"}
Add-on not registered; no compatible hosts detected
I figured out that this error appears only when I'm using this in atlassian-connect.json:
"authentication": {
"type": "jwt"
},
"lifecycle": {
"installed": "/installed"
}
But when I'm using authentication type "none" without lifecycle, my add-on register in right way.
To be more specific, I turn on "Development mode", I have admin permissions and I use email and API key in credentials.json.
Can anybody explain me how does it works and how to fix it?