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
unable to download sunlight map #119
Comments
I have the same issue on Fedora 29 / Gnome 3.30.2 / Python 3.7 / variety 0,7.1. Browser gets the https://static.die.net/earth/mercator/1600.jpg URL after DDOS check but variety reports this trying to change the wallpaper: DEBUG: 2019-01-12 08:21:10,187: profiler() '[Thread-4] -> Entering function: download_one (line 37 in /usr/lib/python3.7/site-packages/variety/EarthDownloader.py) - not tracing further because MAX_NONTARGET_DEPTH=1' |
Workaround... #EARTH_IMAGE_URL = "https://static.die.net/earth/mercator/1600.jpg" it's not gentlemen like, but works. |
Looking at this report I believe the problem is that die.net sometimes enables Cloudflare DDoS protection, which essentially blocks all automated clients from downloading from it. Unless we switch to a different backend entirely, I'm not sure there's much we can do about this. |
I used to use Opentopia before, then I switched to Die.net as being the actual source. However I am contemplating removing this feature entirely - apart from the issue with Cloudflare (or the alternative of using a "referring" site like Opentopia), it also adds quite a lot of complexity via special cases in the code just to support the non-standard refreshing, does not fit great into the UI either, and generally is quite much different from what Variety generally does. The only thing that stops me is that this does seem to be quite a popular feature, despite its clumsiness. Alternatively, we may consider just providing a generic configurable "auto-refreshing" downloader plugin where user specifies an image URL. Thus there are other options apart from the world sunlight map by die.net - e.g. the images from http://lunaf.com/space/daylight/. This would be better for power users, but is pretty bad for feature discovery - most users will not even think to add such a source, unless the UI points them to it (which would also mean we need some form of non-trivial dedicated UI around this). |
I can download the URL using wget and curl, at a time when I see CloudFlare protection active in the browser. In the browser, the original response is an HTML document sent with status 503. It contains JavaScript that when executed will cause another request that eventually succeeds. WIth a different user agent such as 'wget', the protection is not active. So just change the user agent and it will work again. I’ve done this (in a simplistic way) and would be happy if this could be used. |
Fixed by #163 in Git master |
Hi,
When I try to fetch the world sunlight map from die.net, Variety gives the following error on command line:
503 Server Error: Service Temporarily Unavailable for url: https://static.die.net/earth/mercator/1600.jpg
The URL is accessible on a browser, albeit after a DDOS check. I wonder if this is fixable on Variety (eg. by giving a few seconds before timeout)
Maybe irrelevant, but it is a Manjaro/Arch system with Gnome 3.30.
Thanks
The text was updated successfully, but these errors were encountered: