Connection.php error

Hi,

I am getting the following error on my Prod site: https://revcore.azurewebsites.net/

{"code":2002,"file":"\/home\/site\/wwwroot\/dmxConnectLib\/lib\/db\/Connection.php","line":105,"message":"SQLSTATE[HY000] [2002] ","trace":"#0 \/home\/site\/wwwroot\/dmxConnectLib\/lib\/db\/Connection.php(105): PDO->__construct('mysql:host=revc...', 'smartlighthouse...', 'U4%B9gpGjLx!g', Array)\n#1 \/home\/site\/wwwroot\/dmxConnectLib\/modules\/dbconnector.php(12): lib\\db\\Connection->__construct(Object(lib\\App), Object(stdClass), 'db')\n#2 \/home\/site\/wwwroot\/dmxConnectLib\/lib\/App.php(204): modules\\dbconnector->connect(Object(stdClass), 'db', NULL)\n#3 \/home\/site\/wwwroot\/dmxConnectLib\/lib\/App.php(144): lib\\App->execSteps(Object(stdClass))\n#4 \/home\/site\/wwwroot\/dmxConnectLib\/lib\/App.php(170): lib\\App->exec(Object(stdClass), true)\n#5 \/home\/site\/wwwroot\/dmxConnectLib\/lib\/App.php(176): lib\\App->execSteps(Object(stdClass))\n#6 \/home\/site\/wwwroot\/dmxConnectLib\/lib\/App.php(144): lib\\App->execSteps(Array)\n#7 \/home\/site\/wwwroot\/index.php(19): lib\\App->exec(Object(stdClass), true)\n#8 {main}"}

My local envt is set up like this:


This is my Prod envt:


The app. works fine in local.

When when I load my prod site: https://revcore.azurewebsites.net/ I get the error above.

From an older post: Getaddrinfo failed: Name or service not known George stated: You shouldn’t enter https:// in front it is not a webpage!

As you can see in the screenshot, the DB host does not begin with https://

I need help in order to get the errors resolved and site operational.

@George please let me know what if anything I need to do in order to get support on this

Maybe you have some weird special characters in the password for the database that are corrupting the connection

I am able to connect to access the DB via Wappler and DB Beaver using the same username/pw.

Would weird special characters only affect the browser?

Check database connection under globals on each target.
See:

Will do. Thank you!