401 (Unauthorized) after moving to Heroku

I just moved my Atlassian Connect Express add-on to Heroku. Now every endpoint that uses addon.authenticate() returns 401 (Unauthorized).

In Heroku, I’ve set the NODE_ENV config variable to “production” so that the “production” config in config.json is used. I’m using Heroku Postgres as the store (type is “postgres-atlassian,” url is “$DATABASE_URL”).

Any ideas why this is happening or what I should check?

Thanks!
John

I figured it out. I had a custom route for /installed that did nothing except returning a 200 status code. Removing that made the add-on start working again.

4 Likes

Thanks @johngturk for following up on your question.

2 Likes