To give you some context. I have used the spring boot thymeleaf template available on the bitbucket repository for developing apps using java. I have used it to create a custom app, this will always be a private app not intended to be used publicly. The app works in my sandbox instance of JIRA when I use the ngrok tunneling software.
However, the problem arises when I try to publish the app as a private app using my vendor account.
Firstly when I try to publish the app using an installation URL, which in this case is the ngrok randomly generated the address. It says that the “App key must be unique” in my atlassian-connect.json file referring to the default value of “key”: “atlassian-connect-spring-boot-sample-thymeleaf”. When I change this key to make it unique it causes 2 more problems.
The app itself stops working when I “upload app” onto my sandbox instances, and I get this prompt on JIRA; “The app host returned HTTP response code 401 when we tried to contact it during installation. Please try again later or contact the app vendor.”, but despite it not working it can be published in the private market place.
When I do publish it even though it’s not working, I use the token generated from a privately published app to install the app on to my sandbox it causes the same error.
I was wondering if there is any way to solve this issue such that I can change the value of the “key” and it works when I upload it from my machine and it can be published and works when installed using a token? Help would be really appreciated. Thanks