Closed ShinJii89 closed 1 year ago
anyone?... @johnkelesidis
where are you getting a 500 error? on the addSubscriber
, search
or removeSubscriber
calls? also, are you targeting mailerlite or mailerlite classic? (if you are not sure what's the size of your api key?)
where are you getting a 500 error? on the
addSubscriber
,search
orremoveSubscriber
calls? also, are you targeting mailerlite or mailerlite classic? (if you are not sure what's the size of your api key?)
We had (which we know) 2 clients with that problem and I can see they have new mailerlite api key.
I can't reproduce now 500 in PHP but it was something with ->groups() (doesn't matter if add,remove etc.)
Now I have also fresh "error" with too many requests:
try {
$mailerliteClient = new \MailerLiteApi\MailerLite($mailerlite_data['mailerlite_key']);
$mailerlite_groupsApi = $mailerliteClient->groups();
$mailerlite_groups = $mailerlite_groupsApi->orderBy('name', 'ASC')->get(); // returns array of groups
if (isset($mailerlite_groups[0]->error)) {
echo $mailerlite_groups[0]->error->message;
}
} catch (\MailerLiteApi\Exceptions\MailerLiteSdkException $e) {
echo $e->getMessage();
} catch (\Exception $e) {
echo $e->getMessage();
}
Until I have if (isset($mailerlite_groups[0]->error)) { - I can see error "too many requests" but If I delete that - there's nothing, try catch doesn't work and not load any lists and any errors... why? @johnkelesidis
come on people, why are you so ignorant of this plugin?
@ShinJii89 we released some updates regarding this, can you give it another shot?
@johnkelesidis you talk about to small limit and error "Too many requests" or about try catch doesn't work? :D
the too many requests one, I'm afraid we can't replicate the 500 error
@johnkelesidis I looked at this now and it looks like there's no "too many requests" anymore... I hope :))) thanks!
Hi, We have some clients which random has errors like "Too many requests" but there's error 500 in php even if we have in code try catch....
Can you fix that as fast as it's possible?