Skip to content

API client hangs forever when rate limit exceeded #4

Description

@mhoban

When the daily request limit is exceeded, the client should throw an exception. Instead, the request just hangs forever. I can get around this by wrapping the call in some clever timeout code, but the API itself should fail immediately with an informative exception.

I can reproduce this by just running the example code in a loop 50 times, sleeping for a second between each request so as not to exceed the rate limit.

If I try the request through curl, I get a JSON response saying "rate limit exceeded", so it's clear the result is coming through somewhere, it's just not being interpreted correctly.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions