Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getContacts() -> error code: 524 #26

Open
Farrusc0 opened this issue May 1, 2024 · 0 comments
Open

getContacts() -> error code: 524 #26

Farrusc0 opened this issue May 1, 2024 · 0 comments

Comments

@Farrusc0
Copy link

Farrusc0 commented May 1, 2024

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;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant