-
Notifications
You must be signed in to change notification settings - Fork 255
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CLI: Allow to differentiate between 404 and connection timeout #681
Comments
On another look, this may require some further digging. Technically, we already should be handling this - "twarc1" and "twarc2" should both handle retries for timeouts, and not retry for 404s. But it seems like 404s aren't being caught properly in twarc1 right now. So maybe there is a bug there:
Should output a handled error, but instead
A stack trace. I haven't fully replicated timeouts yet. As an alternative - does
|
If I am ready to provide stacktrace and any further diagnostics for request timeout cases if that can help us to have some progress. |
Oh, i see what you mean - i don't know about losing v1.1 Access, but as far as i know, brand new API accounts all get v2 access. Keeping this open for the v1.1 Errors bug tho - i'll double check stuff there for now. |
Similar problem with |
As I'm struggling to work around the API connection issues with CLI
twarc1
, I need some way to differentiate unsuccessful completion with "Read timed out" and "404 no users found from the list specified".My app deals with accounts that last few hours to few weeks, and therefore "No users found" for
users/show
is absolutely legit outcome that needs not to be retried or handled in any special way.On the contrary, in timeout scenario I need to retry
twarc
invocation until it succeeds.CLI
twarc1
returns error code1
both in case of 404 and connection timeout.Is there way to either make
twarc
consider 404 as a non-error scenario, or to differentiate between 404 and connection timeout for CLI utility?The text was updated successfully, but these errors were encountered: