elastic / elastic/site-search-ruby

Throw an exception when hitting the rate limit (429) instead of generic exception

Open
#16 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Ruby
Stars
2
Forks
5
PR merge metrics
No merged PRs in 30d

Description

When we are rate limited the client just throws a generic exception. It would great if it could throw a specific exception [here](https://github.com/elastic/site-search-ruby/blob/e434d93b576379d93903c0045d378f4bb5f6bb5e/lib/elastic/site-search/request.rb#L91-L116) and also expose the rate limit headers so we can do something about it.

```
X-RateLimit-Limit: xxxx
X-RateLimit-Remaining: xxxx
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.