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?
Turned out that the problem was the handler for /installed endpoint which I added later.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.