Modify ↓
Opened at 2017-03-27T05:14:39Z
#1288 new defect
twitter: rate limiting errors are not shown
Reported by: | jhl | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Version: | Unspecified | |
Keywords: | Cc: | ||
IRC client+version: | Client-independent | Operating System: | Public server |
OS version/distro: |
Description
When login fails due to exceeding a rate limit, Twitter returns code 420 Enhance your Calm. However, this triggers the response truncation logic in http_client.c, and so the only user-visible info is "Error: Stream closed (Response truncated)".
It's also possible to trigger rate limiting elsewhere, such as on /1.1/friends/ids.json, after logging in; in this case it actually displays the error eg. "Logging in: Error: Could not retrieve /1.1/friends/ids.json: 429 Too Many Requests (Rate limit exceeded)"
Perhaps the truncation logic should ignore cases where the status is 4xx?
Attachments (0)
Note: See
TracTickets for help on using
tickets.