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
AsyncImage - Failed to load image #5864
Comments
Seems this host is filtering on the user agent, we can open the url with clients like |
Thinking a bit more, the actual issue is that you can't set the required parameter on the loader class from user code, It seems like the simple solution would be to give a global kivy option, something like "useragent", in a new "network" section. and use this value in both UrlRequest and Loader (as it uses urllib directly). |
Thanks @tito, works like a charm 🌮 |
New testing "Add a color to the background of a custom layouts rule/class" from [https://kivy.org/doc/stable/guide/widgets.html] but same problem:
What am I doing wrong? What am I missing? (Note: Just copy/paste code from site) |
Versions
pipenv install --skip-lock git+http://github.com/kivy/kivy.git#egg=kivy-1.10.1
Description
I tried using
AsyncImage
to loadhttps://cdn-images-1.medium.com/max/800/1*RO3AhbppPUFJBZwt3gUW-A.png
which is failing with errorHTTP Error 403: Forbidden
Possible Solution: Adding proper headers before making the request using
urllib
as being done here inloader
moduleCode and Logs
main.py
main.kv
python main.py (logs)
The text was updated successfully, but these errors were encountered: