'How do I connect to JawsDB (add-on) with a Github deployment (javascript program) on Heroku?

I have tried my best to debug this issue for the past few days with no luck. I am a beginner so there could totally be simple things I just didn't know. So I have JawsDB as an add-on in Heroku and I can connect to it when running my JS program with the command line. But when Heroku deploys the Github code, it gives me a connection error (screenshot). Could anyone help me out?Heroku connection error log



Solution 1:[1]

The issue was with Heroku's automatic GitHub deployment as Andy pointed out. After testing manual deployment with Heroku CLI, everything works as it should.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 ZeroXA