hello evryone
after developing and testing my ACE i deployed it on heroku when i call my app url ( https://agil-cockpit.herokuapp.com/) it return the atlassian-connect.json just fine , now i tried to install my app on my instance but i got 401 error , i run the commande heroku logs --tail to show the log so i got this
It looks like there is a problem accessing your PostgreSQL db during installation, that’s the error message in the second to last line in your log excerpt.
Can you share a bit more about your database setup? I’m guessing you are not using Heroku’s PostgreSQL, right?
@osiebenmarck thank you for your response
i used this commande heroku addons:add heroku-postgresql:hobby-dev --app <add-on-name> in may case heroku addons:add heroku-postgresql:hobby-dev --app agil-cockpit
from my config.json :
same error (401) unfortunately 2021-01-07T14:09:49.516751+00:00 app[web.1]: Installation verification error: 401 no pg_hba.conf entry for host "3.84.248.46", user "yjozzozofeciwl", database "d6vhckjkl9l4d2", SSL off
my config.json :
i fix that by downgraded pg version from 8 to 7 now i m able to install may ACE app in my instance
but i m facing this error while runing my app Error: Could not load the component dashboard.jsx. Did you run npm buildto compile your jsx files?
this is my route file :
export default function routes(app, addon) {
I’m also running an app on Heroku/Postgres as @hamzabouallegue . (node v14.17.0, atlassian-connect-express v6.6.0, pg v8.6.0, sequelize v6.3.5. So I tested several cases :
→ It’s OK, so it seems that "rejectUnauthorized":"false" is mandatory, do you confirm that ? I looks for me like a medium security problem, I don’t really like to add this parameter… Your opinion ?
I must have missed in January, but I do believe that Heroku’s PostgreSQL databases use self-signed certificates, in which case Yes, you will need to set rejectUnauthorized to false to connect to them.
If you are uneasy about this, then your options would be to move to a database provider that provides verifiable SSL certificates or to see what else Heroku has to offer. They talk about this issue here, but I have no experience with the alternatives they propose.