From c4b284144ff2682a48db02e521d45f6a45e93f80 Mon Sep 17 00:00:00 2001 From: Peter Lieverdink Date: Wed, 16 Oct 2024 16:08:28 +1100 Subject: [PATCH] fix: The credentials need to be the JSON blob converted to an array. --- .../src/Commands/ReliefWebReportingCommands.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/modules/custom/reliefweb_reporting/src/Commands/ReliefWebReportingCommands.php b/html/modules/custom/reliefweb_reporting/src/Commands/ReliefWebReportingCommands.php index d3f1b4030..f59be95d3 100644 --- a/html/modules/custom/reliefweb_reporting/src/Commands/ReliefWebReportingCommands.php +++ b/html/modules/custom/reliefweb_reporting/src/Commands/ReliefWebReportingCommands.php @@ -790,7 +790,7 @@ public function exportReportData( // Suppress error to avoid echoing the credential in a traceback. if (!@file_exists($credentials)) { - $client->setAuthConfig($credentials); + $client->setAuthConfig(json_decode($credentials, TRUE)); } else { $client->useApplicationDefaultCredentials();