I have an API in HEROKU that when I use the method of this API it doesn't even connect to my DB, I only get the ERROR: DEPTH_ZERO_SELF_SIGNED_CERT Does anyone knows what it can be? I believe that it has something to do with SSL or HTTPS connection. I have no idea what could it be and I already spend a lot of time in this. Also, I am using the framework Adonis JS 5. Both the API and DB are in HEROKU.
The following appear:
{
"connection": "pg",
"message": "Unable to reach the database server",
"error": {
"code": "DEPTH_ZERO_SELF_SIGNED_CERT"
}