vonage-php-sdk-core
vonage-php-sdk-core copied to clipboard
SMS sending freezes the execution if throttle occurs
Line 51 in src/SMS/Client.php calls PHP sleep function, which expects a timeout in seconds, whereas src/SMS/ExceptionErrorHandler.php throws a ThrottleException object with a timeout in milliseconds. Thus, the script freezes for xxx seconds instead of milliseconds.
Looking at src/SMS/ExceptionErrorHandler.php, it does seem like it's setting the timeout in seconds now. So this should be resolved?
https://github.com/Vonage/vonage-php-sdk-core/blob/main/src/SMS/ExceptionErrorHandler.php#L62