You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After setting up the AsyncStreamingClient for v2 I noticed a massive number of 429 error codes, thousands within 24 hours. I did some digging to figure out what is going on and haven't been able to spot the exact cause. What I did notice though is that twitters documentation says that you must use exponential backoff if the error code is 429 starting at 60 seconds but the code only does exponential backoff starting at the minimum 60 seconds when the error code is 420 which I have yet to see. This inevitably leads to the stream constantly attempting to reconnect too early increasing the time before it can reconnect the stream again due to too many connections leading to downtime on the stream.
The text was updated successfully, but these errors were encountered:
After setting up the AsyncStreamingClient for v2 I noticed a massive number of 429 error codes, thousands within 24 hours. I did some digging to figure out what is going on and haven't been able to spot the exact cause. What I did notice though is that twitters documentation says that you must use exponential backoff if the error code is 429 starting at 60 seconds but the code only does exponential backoff starting at the minimum 60 seconds when the error code is 420 which I have yet to see. This inevitably leads to the stream constantly attempting to reconnect too early increasing the time before it can reconnect the stream again due to too many connections leading to downtime on the stream.
The text was updated successfully, but these errors were encountered: