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
We're encountering an issue where the Twitter API sometimes fails to log in, triggering the error "Failed to initialize Twitter Api - not logged in". The current implementation does not attempt to recover from transient login failures, it manually makes a second attempt right after the first failure and if this fails doesn't try again.
2025-02-06 12:06:48.921 | INFO | [twitter-api] | Loading existing cookies
2025-02-06 12:06:48.932 | INFO | [twitter-api] | Loaded existing cookies from file
2025-02-06 12:06:49.120 | INFO | [twitter-api] | Login status: false
2025-02-06 12:06:49.121 | INFO | [twitter-api] | Previous cookies is likely expired or invalid, logging in again
2025-02-06 12:06:49.122 | INFO | [twitter-api] | No existing cookies found, proceeding with login
Expected Behavior
Instead of failing immediately, the login process should implement a retry mechanism that uses exponential backoff. This would help mitigate issues caused by intermittent network problems or temporary credential issues. For example, if a login attempt fails, the system should wait (e.g., 1s, 2s, 4s, etc.) and try again for a configurable number of retries before ultimately reporting a failure.
The text was updated successfully, but these errors were encountered:
Twitter API Login Failure and Recovery
Description
We're encountering an issue where the Twitter API sometimes fails to log in, triggering the error "Failed to initialize Twitter Api - not logged in". The current implementation does not attempt to recover from transient login failures, it manually makes a second attempt right after the first failure and if this fails doesn't try again.
Expected Behavior
Instead of failing immediately, the login process should implement a retry mechanism that uses exponential backoff. This would help mitigate issues caused by intermittent network problems or temporary credential issues. For example, if a login attempt fails, the system should wait (e.g., 1s, 2s, 4s, etc.) and try again for a configurable number of retries before ultimately reporting a failure.
The text was updated successfully, but these errors were encountered: