-
Notifications
You must be signed in to change notification settings - Fork 256
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
Error using searches counts-only with twarc2 from command line #615
Comments
Input file: query_users.txt |
Definitely a bug because it's not meant to be throwing that error - but the input file also had an issue:
(Also i think The user ID
Maybe we should have a validation for spotting |
The bug is in the workaround for twitter counts stopping prematurely - I think this should be reproducible with just a single count by itself? |
I will investigate later today if I get a chance. |
Another example of this:
Full input file (very long) This error is reproducible with the latest main version with just this:
User with ID I think it may be easier or better to have a general try / except around each "query" when working with batch input - the downside is that people may miss that something went wrong, but on the bright side it won't crash during a long process. |
I do have a partial fix for the original issue, but haven't had a chance to properly test it yet. I think the question about error handling needs to be considered separately - I'd rather fail early and loudly where all the context is available. Also the logic is already more convoluted than I'd like, so I'd prefer to defer changes to when we have a better idea about #608 Related though, I have been thinking about an approach to resuming long running processes, which might make loud failure more palatable - on error you could fix the input file, then rerun the same command with a --resume option, maybe? |
Via: https://twittercommunity.com/t/error-using-searches-counts-only-with-twarc2-from-command-line/168793
The text was updated successfully, but these errors were encountered: