{"action":"created","issue":{"url":"https://api.github.com/repos/magarena/magarena/issues/729","repository_url":"https://api.github.com/repos/magarena/magarena","labels_url":"https://api.github.com/repos/magarena/magarena/issues/729/labels{/name}","comments_url":"https://api.github.com/repos/magarena/magarena/issues/729/comments","events_url":"https://api.github.com/repos/magarena/magarena/issues/729/events","html_url":"https://github.com/magarena/magarena/issues/729","id":141383777,"number":729,"title":"Download card images failure","user":{"login":"slartifer","id":17887799,"avatar_url":"https://avatars.githubusercontent.com/u/17887799?v=3","gravatar_id":"","url":"https://api.github.com/users/slartifer","html_url":"https://github.com/slartifer","followers_url":"https://api.github.com/users/slartifer/followers","following_url":"https://api.github.com/users/slartifer/following{/other_user}","gists_url":"https://api.github.com/users/slartifer/gists{/gist_id}","starred_url":"https://api.github.com/users/slartifer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slartifer/subscriptions","organizations_url":"https://api.github.com/users/slartifer/orgs","repos_url":"https://api.github.com/users/slartifer/repos","events_url":"https://api.github.com/users/slartifer/events{/privacy}","received_events_url":"https://api.github.com/users/slartifer/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/magarena/magarena/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/magarena/magarena/labels/engine","name":"engine","color":"d4c5f9"},{"url":"https://api.github.com/repos/magarena/magarena/labels/UI","name":"UI","color":"bfe5bf"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-03-16T19:53:56Z","updated_at":"2016-03-17T04:57:31Z","closed_at":null,"body":"Not sure if this is a bug, but I have tried to rule out other possible causes and this looks like the preferred place to post issues.\r\n\r\n'Download card images' has been behaving strangely for me (new user, magarena 1.70).  When I use it, it will rapidly download some images correctly, interspersed with error 503's, e.g.:\r\n\r\njava.io.IOException: Server returned HTTP response code: 503 for URL: http://magiccards.info/scans/en/tsts/55.jpg [Avalanche Riders.jpg]\r\n\r\nAfter about 200 correct downloads and 100 error 503's, it will then switch to slowly timing out, e.g.:\r\n\r\njava.net.SocketTimeoutException: connect timed out [Black Oak of Odunos.jpg]\r\n\r\nAdditionally, at that point, magiccards.info (which previously responded to all requests from me) will time out on all requests for a period of time I haven't been able to determine (maybe 24 hours?).  After that time passes, I can restart the whole thing and get another 200 or so correct downloads.\r\n\r\nThe surprising thing is that I *can* access those exact addresses via HTTP without an error 503 (or any other problem), in a web browser.  (Through a proxy, currently, as I'm getting timed out again.)\r\n\r\nI have gotten the same behavior on multiple computers, on my home and work networks, with antivirus software disabled, etc., and traceroute turns up no other problems.  My guess is that magiccards.info is blacklisting my IP because of all the rapid error 503's.  Not sure what's causing those but it doesn't seem to be the URL, at least.  Full errors from last session below.\r\n\r\n[example errors.txt](https://github.com/magarena/magarena/files/176780/example.errors.txt)"},"comment":{"url":"https://api.github.com/repos/magarena/magarena/issues/comments/197702848","html_url":"https://github.com/magarena/magarena/issues/729#issuecomment-197702848","issue_url":"https://api.github.com/repos/magarena/magarena/issues/729","id":197702848,"user":{"login":"slartifer","id":17887799,"avatar_url":"https://avatars.githubusercontent.com/u/17887799?v=3","gravatar_id":"","url":"https://api.github.com/users/slartifer","html_url":"https://github.com/slartifer","followers_url":"https://api.github.com/users/slartifer/followers","following_url":"https://api.github.com/users/slartifer/following{/other_user}","gists_url":"https://api.github.com/users/slartifer/gists{/gist_id}","starred_url":"https://api.github.com/users/slartifer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slartifer/subscriptions","organizations_url":"https://api.github.com/users/slartifer/orgs","repos_url":"https://api.github.com/users/slartifer/repos","events_url":"https://api.github.com/users/slartifer/events{/privacy}","received_events_url":"https://api.github.com/users/slartifer/received_events","type":"User","site_admin":false},"created_at":"2016-03-17T04:57:31Z","updated_at":"2016-03-17T04:57:31Z","body":"Thanks @ShawnieBoy and @lodici for the helpful replies and the links.\r\n\r\nI tried again tonight and it worked fine, this time, for about 1000 card images, including the cards that previously produced error 503's.  Then the error 503's hit.  I did notice, this time, that there were **exactly** 100 instances of error 503 before it switched to timing out.  That is consistent with what happened previously, and the round number sure smells like it is an IP-specific response.\r\n\r\nRe proxies, I was just using a web-based proxy before.  I don't have a functional server handy to test via magarena's settings, unfortunately.\r\n\r\nI did see some of the previous issues before posting and was also surprised no one else was sharing this problem currently -- hence all the checking I did to make sure it wasn't on my end.  Given that I've consistently been able to download 200 images at a time, though, it seems likely that this would primarily affect new users who are trying to download the entire bank, rather than an update or two; that could be part of why it hasn't come up."}}