Forums

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

Registering BitBucket addon

Igor Nikolaev
June 24, 2018

I'm trying to create a simple BitBucket add-on using NodeJS and Atlassian Connect Express (ACE). I followed instruction here and everything works fine when I run it locally and use `ngrok`.

Now when I try to deploy on Heroku in production mode, I'm getting the following error: `Unauthorized: Could not find stored client data for connection:XXXXXXX. Is this client registered?`

By googling I found that in development mode ACE performs automatic registration on the application, but I haven't found any recommended way to register application when running in production mode.

Thus the question: how do I register add-on when running in production mode? Would calling `addon.register(true)` in `app.js` be sufficient or are there any other considerations?

1 answer

1 accepted

1 vote
Answer accepted
Igor Nikolaev
June 25, 2018

Turned out that the problem was the handler for /installed endpoint which I added later.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events