Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle missing reset header [SDK-1683] #228

Closed
wants to merge 1 commit into from
Closed

Conversation

Widcket
Copy link
Contributor

@Widcket Widcket commented Jun 24, 2020

Changes

The exception class RateLimitEncountered has a reset method that used the value of the X-RateLimit-Reset header without a fallback, and produced a can't convert nil into an exact number (TypeError) error if that header was not present. hat was changed to return nil instead.

Testing

Please describe how this can be tested by reviewers. Be specific about anything not tested and reasons why. If this library has unit and/or integration testing, tests should be added for new functionality and existing tests should complete without errors.

  • This change adds unit test coverage
  • This change adds integration test coverage
  • This change has been tested on the latest version of Ruby

Checklist

@Widcket Widcket added this to the v4.14.0 milestone Jun 24, 2020
@Widcket Widcket requested a review from a team June 24, 2020 00:16
@Widcket Widcket closed this Jun 24, 2020
@Widcket Widcket deleted the fix/missing-header branch June 24, 2020 14:50
@davidpatrick davidpatrick mentioned this pull request Jul 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant