zanozik / semysms

SemySMS Notifications Channel for Laravel 5
MIT License
2 stars 2 forks source link

429 Too Many Requests #1

Closed bigperson closed 6 years ago

bigperson commented 6 years ago

Hi. I use semysms service very active and I get an error:

GuzzleHttp\Exception\ClientException: Client error: POST https://semysms.net/api/3/sms.php resulted in a 429 Too Many Requests response: 429 Too Many Requests

How can I postpone sending SMS when I get this error? I did not find this function in the standard laravel notifications mechanism.

Sending is done through queues: redis + laravel horizon

zanozik commented 6 years ago

Hello, You could throttle your attempts using Rate limiting if you use Redis to handle your queues.

bigperson commented 6 years ago

@zanozik Could you tell me how to use this with the mechanism of notifications?

zanozik commented 6 years ago

@bigperson This heavily depends on your redis/queuing configuration. I think you should turn to Laravel forums or QA channels like stackoverflow.com for help.