Skip to content

API client hangs forever when rate limit exceeded #4

@mhoban

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.

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