"401": "Unauthorized" after deployment to Heroku

Hello!
I didn’t find answer to my problem in existing topics related to “401” error when deploying Atlassian Connect app to Heroku, so I’m creating separate topic.
Here is my atlassian-connect.json
When after deployment to Heroku I try to reach /index.html or /installed I get 401 error. I have separate controller for /installed as it was adviced in community. Please, advice, what am I missing ?

I’d say hitting your endpoints is expected to get a “401”, as these endpoints require authentication with JWT and/or a secret.

Thanks, that’s true.
I’ve tried to put “authentication”: {“type”: “none”} to atlassian-connect.json, but result was the same.
Can you, please, direct me to right documentation, how to implement this for JIRA Cloud ? My application will provide additional custom panel inside issue view.
Additionally, browser shows 500 error when JIRA tries to turn to /index.html

Request URL: https://jira-cloud-checklist.herokuapp.com/index.html?xdm_e=https%3A%2F%2Fdzmitrykashlach-dev.atlassian.net&xdm_c=channel-STIL-CHL__issue-checklist&cp=&xdm_deprecated_addon_key_do_not_use=STIL-CHL&lic=none&cv=1001.0.0-SNAPSHOT&jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiI1NTcwNTg6Mjk4YTE4OGUtZDYyNy00ZDM5LWFlYzYtOThmNTA0YzhiNDc4IiwicXNoIjoiZWIxMTgxMjMxZjZiNjY2NzRkM2Q2MDc2MDhhYmU1YWQ5NGY2NjU5MmNhNTcyM2RhMmE2MmUwYzY1NmE0M2MxZiIsImlzcyI6ImQ2MmQ2MzY1LWQ4ODctMzQ0ZC04ZjQ5LTE1MWVlMzE0YmQ5YiIsImNvbnRleHQiOnt9LCJleHAiOjE2NjEzMzQzMDMsImlhdCI6MTY2MTMzMzQwM30.FIzkh6RFNazB7VHDEhhL-lyOyoEB_Gu3Pbuob_GqSvI
Request Method: GET
Status Code: 500 
Remote Address: 23.22.130.173:443
Referrer Policy: no-referrer

And I see that JWT is in its place. Is it the same problem or another one with my project ?

Not sure I can help you further, as I’m not familiar with Java/Spring.

1 Like