brevo-php icon indicating copy to clipboard operation
brevo-php copied to clipboard

getContacts() -> error code: 524

Open Farrusc0 opened this issue 1 year ago • 0 comments

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;
}

Farrusc0 avatar May 01 '24 13:05 Farrusc0