-
Notifications
You must be signed in to change notification settings - Fork 6
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
Don't retry codeforces submission fetching if handle is incorrect #167
Comments
Handle verification takes quite significant time. |
Are the response status code for |
the status is "failed" in both the cases but the comment is different. |
And what about the HTTP status code? I believe they will be different. Rather than matching for the comment, it would be better to check for status code in this case. |
@prateek2211 Iss error ka response code toh 400 hai, do you know dusre waale ka kya hai? |
I don't really remember it, you could write a loop and cross the limit to see the status code |
@Arnesh07 Is this issue resolved? |
Currently if the codeforces API gives status which is not "OK", then it retries, assuming that max API limit is exceeded. But status could be not "OK", even if handle is invalid.
https://github.com/mdg-iitr/Codephile/blob/d6bcea4f3e5c2417420e37822c61ca8c0e06c4c8/scrappers/codeforces/scrapper.go#L60
Try this: http://codeforces.com/api/user.status?handle=incorrect-handle&from=500&count=50
The text was updated successfully, but these errors were encountered: