Hello @uripeled2 ! Welcome to our community
The logs say that the agent is refusing to connect to your database because of the error DEPTH_ZERO_SELF_SIGNED_CERT
which indicates that your DB uses a self-signed certificate that cannot be validated. Probably caused by the Heroku config for this different postgres.
The following thread give a solution to accept invalid certificate.
Let me know if it help.
Thanks in advance
Morgan.