Connection timedout error in heroku?

I am getting this error in my Wappler project which is deployed to heroku. Project is working fine in localhost.

"status": "500",
"code": "ETIMEDOUT",
"message": "connect ETIMEDOUT",
"stack": "Error: connect ETIMEDOUT\n    at Connection._handleTimeoutError

Also, I had recently changed all of my database connection of server actions to a digital ocean database.

Is there a solution for this ?

Have you added your Heroku ip to the trusted source of the Digital Ocean Managed Database?

if those are enabled

I did add the url in the trusted source, but it did not show up in there.

Also, I am getting this error in the heroku logs.

heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/login" host='heroku_url' request_id=9372c6b9-4b9a-4b18-99b7-e5ea5b30ff35 fwd="122.187.99.198" dyno= connect= service= status=503 bytes= protocol=https