Closed michaelvickersuk closed 3 years ago
I might push an update to the API in the next days to fix this and return the headers for requests that fail due to limits.
The API now will return the X-Rate-* headers for requests that fail with status 429. Can be either "Request limit reached" or "Request limit too low to process request" for batch requests.
Thanks so much for keeping this repository!
Thanks @Stroemgren :+1:
I've now included any requests returning status 429 so the X-Rate-* headers will be available through $response->meta
I will take care of this this weekend. Thanks so far!
@pixelpeter please can this be merged
Closing due to inactivity and Laravel 5 no longer receiving support
Genderize does not return the X-Rate headers for unsuccessful requests, eg when the rate limit has been exceeded, missing or incorrect params are supplied. When such an event takes place an error occurs as the
$data->headers[X-Rate-*]
array key is not set.