Newbie question relating to connect basics plugin

Hi team,
I am new to JIRA development and am working through the ‘Connect Basics’ article (https://developer.atlassian.com/static/connect/docs/latest/tutorials/connect-basics.html) and I am experiencing a issue when I try to upload my addon to my dev cloud instance.

When I upload my url, I get the following error:
An SSL error occurred when we tried to contact the add-on host at https://developer.atlassian.com/static/connect/docs/latest/tutorials/connect-basics.html. Please try again later or contact the add-on vendor. See also Troubleshooting SSL issues in the developer documentation

I assume this error is because I do not have a https connection. Is this correct? If so, is there a way past this? I am literally going through the steps presented in the article, and was hoping by the end I would have a simple example up and running.

FYI, my goal is t write a dashboard widget and I thought this would be a good first step.

My descriptor file contents is as follows:

{
     "name": "Hello World",
     "description": "Atlassian Connect add-on",
     "key": "com.example.myaddon",
     "baseUrl": "http://REMOVEDDOMAIN.io/JIRA",
     "vendor": {
         "name": "Example, Inc.",
         "url": "http://example.com"
     },
     "authentication": {
         "type": "none"
     },
     "apiVersion": 1,
     "modules": {
         "generalPages": [
             {
                 "url": "/helloworld.html",
                 "key": "hello-world",
                 "location": "system.top.navigation.bar",
                 "name": {
                     "value": "Greeting"
                 }
             }
         ]
     }
 }

Thank you and I eagerly await your reply.

Kelvin

1 Like

Atlassian recommends ngrok: https://developer.atlassian.com/static/connect/docs/latest/developing/developing-locally.html

Another option is to upload your content to an Amazon Web Services (AWS) S3 Bucket and serve as a static website, which can run over HTTPS.

3 Likes

Thank you I revisited that link and it deleted and recreated the web application and now all ok, with exception:

{
   "key": "com-example-myaddon-mitratech",
   "name": "Hello World",
   "description": "Atlassian Connect add-on",
   "baseUrl": "https://8e5bc962.ngrok.io",
   "vendor": {
      "name": "Example, Inc",
      "url": "http://example.com"
   },
   "version": "0.1.0",
   "authentication": {
      "type": "none"
   },
   "modules": {
      "generalPages": [
         {
            "url": "/helloworld.html",
            "key": "hello-world",
            "location": "system.top.navigation.bar",
            "name": {
               "value": "Greeting"
            }
         }
      ]
   }
}

When I try to upload this I get the following 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.

I have looked through the JSON and cannot see what is causing the issue, any hints?

Thank you once again for your help and time, it is greatly appreciated.

Kelvin

You should raise a new question for this. :slight_smile:

1 Like