Getaddrinfo failed: Name or service not known

Wappler Version : 3.0.1
Operating System : php 7.3.11

The following error is appearing on a project when calling a server connect action. It SEEMS to occur on the first hit only, as hits after that all work until I leave the project and come back to work later. The server is attempting to connect to a remote database server at digital ocean.

I suspect it is a digital ocean issue, but posting here in case Wappler is not waiting long enough for the connection or something.

{
  "code": 2002,
  "file": "/home/uniqueideas/domains/project_1546/public_html/dmxConnectLib/lib/db/Connection.php",
  "line": 81,
  "message": "SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name or service not known",
  "trace": "#0 /home/uniqueideas/domains/project_1546/public_html/dmxConnectLib/lib/db/Connection.php(81): PDO->__construct('mysql:host=db-h...', 'user_name_redacted', 'pass_redacted', Array)\n#1 /home/uniqueideas/domains/project_1546/public_html/dmxConnectLib/modules/dbconnector.php(12): lib\\db\\Connection->__construct(Object(lib\\App), Object(stdClass))\n#2 /home/uniqueideas/domains/project_1546/public_html/dmxConnectLib/lib/App.php(173): modules\\dbconnector->connect(Object(stdClass), 'site_db')\n#3 /home/uniqueideas/domains/project_1546/public_html/dmxConnectLib/lib/App.php(137): lib\\App->execSteps(Object(stdClass))\n#4 /home/uniqueideas/domains/project_1546/public_html/dmxConnectLib/lib/App.php(107): lib\\App->execSteps(Array)\n#5 /home/uniqueideas/domains/project_1546/public_html/pages/app/app.php(19): lib\\App->exec(Object(stdClass), true)\n#6 {main}"
}

Any ideas?

Community Page
Last updated: