klaviyo / php-klaviyo

PHP wrapper for the Klaviyo API
59 stars 47 forks source link

Rate limiting gives fatal exception #37

Closed ahyldig closed 3 years ago

ahyldig commented 3 years ago

When rate limiting happens it is suppose to throw an exception of type KlaviyoRateLimitException but because of incorrect parameters passed when initializing the exception, it fails and throws a fatal regular Exception instead.

Exception: Uncaught Error: Wrong parameters for Klaviyo\Exception\KlaviyoRateLimitException([string $message [, long $code [, Throwable $previous = NULL]]]) in /klaviyo/php-sdk/src/KlaviyoAPI.php:182

Cause of error: KlaviyoRateLimitException is expecting a string as the first parameter but the KlaviyoAPI class attempts to pass an Array.

remstone7 commented 3 years ago

Thanks @ahyldig will fix this

remstone7 commented 3 years ago

all set in v2.2.4 updated on composer