Closed revan2159 closed 4 months ago
Error tsb bisa terjadi karena nilai $res->issue[0] bernilai NULL, yang dimana seharusnya $res->issue[0] ini berisikan pesan error dari request.
tapi respon nya tu 403
error nya hilang jika
$headers = [ 'User-Agent' => 'PostmanRuntime/7.37.3', 'Content-Type' => 'application/x-www-form-urlencoded' ];
Saya tutup issue ini, karena temuan ini invalid. saran saya coba perhatikan apakah :
Describe the bug Attempt to read property "issue" on null } catch (ClientException $e) { $res = json_decode($e->getResponse()->getBody()->getContents()); $issue_information = $res->issue[0]->details->text; // NULL $this->log($issue_information, 'POST Token', $url, null, (array) $res); return false; }