Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Something's gone wrong with connect express

el_moreno April 4, 2023

I followed the tutorial at https://developer.atlassian.com/cloud/jira/software/build-a-jira-app-using-a-framework/ and I am having trouble having the plug in show. 

 

Here is my `credentials.json` file:

{
"hosts": {
"https://<my_project>.atlassian.net/": {
"product": "jira",
"username": "<EMAIL_ADDRESS>",
"password": "<SAME_TOKEN_USED_FOR_FORGE_APP>"
}
}
}

When I navigate to my JIRA instance, I do not see the "Hello World" section at top as in the tutorial:

Alt text

 

When I click on Apps I see the Hello World app

 

Screenshot 2023-04-04 at 9.54.56 PM.png

 

When I click on it I see a loading page:


Screenshot 2023-04-04 at 9.56.33 PM.png

I can see this in the logs:

Screenshot 2023-04-04 at 9.58.17 PM.png

which seems to indicate that we are serving the page but I only see the error above.

 

If I navigate to my ngrok URL as in 

`https://<my_ngrok>/atlassian-connect.json`

I can see the contents of the `atlassian-connect.json` file

Am I using the wrong token? Any help would be greatly appreaciate!

 

 

UPDATE:

After some more debugging, I can see the following error message in developer tools:


Before you can serve HTML content, you must sign up for an ngrok account and install your authtoken. (ERR_NGROK_6022)

 

I have checked to make sure the token is valid. If I start a connection using ngrok as in ngrok http 3000, I can see the connection in ngrok, but when I run npm start on the sample project I do not see a tunnel in ngrok

2 answers

1 vote
el_moreno April 10, 2023

I found the answer. The documentation fails to mention that you need to specify the token in the ngrok node module:

https://optimizory.atlassian.net/wiki/spaces/KB/pages/500269057/Facing+ngrok+error+6022+even+after+installing+the+auth+token

0 votes
Gonchik Tsymzhitov
Community Champion
April 4, 2023

Hello, @el_moreno 

have you checked the ngrok connection is appear ? 

https://bitbucket.org/atlassian/atlassian-connect-express/src/master/

el_moreno April 10, 2023

Hello @Gonchik Tsymzhitov

 

The connection appears. I can see my server being hit:


GET / 302 6.622 ms - 90
GET /favicon.ico 404 4.519 ms - 150
GET / 302 0.880 ms - 90
GET /favicon.ico 404 3.402 ms - 150
GET /atlassian-connect.json 200 6.036 ms - 623
GET /favicon.ico 404 1.904 ms - 150
GET /hello-world?xdm_e=https%3A%2F%2Fflow-io.atlassian.net&xdm_c=channel-my
-app__hello-world-page-jira&cp=&xdm_deprecated_addon_key_do_not_use=my-app&lic=none&cv=1001.0.0-SNAPSHOT&jwt=redacted 200 32.921 ms - -

 but I still cannot see anything in my Jira instance. 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events