brevo-php
brevo-php copied to clipboard
getContacts() -> error code: 524
I have a straightforward piece of code designed to retrieve contacts from a segment. It functions as intended when the segment contains contacts. However, if the segment is empty, I encounter an error like this [524] Server error: GET https://api.brevo.com/v3/contacts?limit=10&offset=0&segmentId=1 resulted in a 524 response: error code: 524
try {
$result = $this->instance->getContacts($limit , $offset, null, null, null, $segmentId);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ContactsApi->getContacts: ', $e->getMessage(), PHP_EOL;
}