Greetings! I am trying to get my first addon up and running on my atlassian cloud development site and running across this error:
Invalid Atlassian Connect descriptor: JSON is not well-formed (Unexpected character (‘’ (code 65279 / 0xfeff)): expected a valid value (number, String, array, object, ‘true’, ‘false’ or ‘null’) at [Source: ; line: 1, column: 2]). Please contact the add-on vendor for details.
But it is…
I run my connect json (shown at bottom of post) through the atlassian connect validator and it passes:
I upload the json to my Blob container in Azure and can access it from there via the browser so then I go to my Manage Add-Ons admin page, click Upload Add-on, paste in my connect URL and then see that very “descriptive” message above.
So my json isn’t formatted properly but the Atlassian tools says it is.
Please advise.
(Note: The ngrok session has ended so that won’t work)
{
"key": "has-first-jira-addon",
"name": "HAS - First Jira Add On",
"description": "Happy App Software's very first Jira add-on hosted in Azure",
"apiVersion": 1,
"enableLicensing": false,
"vendor": {
"name": "Happy App Software LLC",
"url": "http://www.happyappsoftware.com"
},
"baseUrl": "http://d5947734.ngrok.io",
"links": {
"self": "https://hasjiratestaddon030418.blob.core.windows.net/has-jira-firstaddon-assets/atlassian-connect.json",
"homepage": "https://hasjiratestaddon030418.blob.core.windows.net/has-jira-firstaddon-assets/index.html",
"documentation": "https://hasjiratestaddon030418.blob.core.windows.net/has-jira-firstaddon-assets/index.html"
},
"authentication": {
"type": "jwt"
},
"lifecycle": {
"disabled": "/disabled",
"enabled": "/enabled",
"installed": "/installed",
"uninstalled": "/uninstalled"
},
"scopes": [
"read",
"write"
],
"modules": {
"webhooks": [
{
"event": "jira:issue_created",
"url": "/issue-created",
"excludeBody": false
},
{
"event": "jira:issue_deleted",
"url": "/issue-deleted",
"excludeBody": false
},
{
"event": "jira:issue_updated",
"url": "/issue-updated",
"excludeBody": false
},
{
"event": "comment_created",
"url": "/comment-created",
"excludeBody": false
},
{
"event": "comment_deleted",
"url": "/comment-deleted",
"excludeBody": false
},
{
"event": "comment_updated",
"url": "/comment-updated",
"excludeBody": false
},
{
"event": "user_created",
"url": "/user-created",
"excludeBody": false
},
{
"event": "user_deleted",
"url": "/user-deleted",
"excludeBody": false
},
{
"event": "user_updated",
"url": "/user-updated",
"excludeBody": false
}
]
}
}