Skip to content

Bug: Rate limit manager incorrectly throws an error for HTTP status 201 #84

@mr-devs

Description

@mr-devs

Despite not being present on Twitter's list of HTTP errors, it seems like when streaming rules are created, they return the successful 201 HTTP status code (details).

If the rate_limit_manager is enabled, the manager will throw an error even though we had no problems.

We should be able to edit the below line...

if response.status_code != 200:

... to match either of these codes with something like...

if response.status_code not in [200, 201]:

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions