-
Notifications
You must be signed in to change notification settings - Fork 15
-R isn't working for failed uploads #1
Comments
Here's what happens: failed uploads aren't listed in the The replace logic needs another API call, no big deal :) |
I will check this patch out :-) |
It seems to work right! Maybe this patch somebody had made for github-release is also interesting, to at least discover when receiving the 502: kidanekal@088eb5f |
Ah, interesting — so GitHub is falsely returning 502 now and then, even when the upload went fine? I'd rather have GitHub fix their (long-standing) upload issues than add cruft to work around it, though. (That's a self-serving point of view btw — I mostly run github-release on CI servers with very fast network connections, so I don't really mind having it upload twice! It was the manual intervention part that was annoying). I'm really disappointed in GitHub on that one though. Network failures happen, but that's clearly a bug on their part 😢 |
@fasterthanlime it seems that it happens sometimes, but I did run with that fork for a day, but it was not reliable. Sometimes it would not detect that an upload actually did fail... But at least processing the response code from GitHub would be useful, because currently I just wrap the upload-command inside a timeout, and if it takes too long I assume it dies and it will retry. Also my server's connection is fast, so uploading twice ain't the problem, but reliably spotting a failed upload attempt would speed up the upload process (not having to wait for the timeout). GitHub should indeed fix this issue, I am in contact with them about this since August last year, with multiple of their staff. But they are not able to reproduce it. I provided them with info from my failed upload attempts, but they are apparently not able to investigate their server's logs. |
Ohhh since it's a naive golang executable it probably just hangs forever if the connection drops, too! I've had that problem with https://github.com/itchio/butler too, we're now using https://github.com/getlantern/idletiming with reasonable values to detect timeouts. |
ok, apparently the -R flag does not work completely for 100% of the cases... :( When I browsed to GitHub manually I could remove that failed upload. If this would happen again in the future, what (e.g. API) command should I run to help with the debugging of this situation? |
Speaking of the devil. I just received another blocked upload. I will attach what the API returns in 'assets'; assets.txt I wrote about GitHub too, when I was contacting them, why these half-uploaded files did not show up in the assets, and whether they please could make this possible. |
I think I got the root cause of the problem found: API pagination! Would you be able to implement pagination? https://developer.github.com/v3/#pagination This is how it is done in Python, through an abstraction: https://github.com/PyGithub/PyGithub/blob/master/github/PaginatedList.py (an temporary workaround would be to set |
@mfonville ah, I did just set per_page to 100 in order to have a temporary fix :) |
cf. original discussion at github-release#39
The text was updated successfully, but these errors were encountered: