-
Notifications
You must be signed in to change notification settings - Fork 6.1k
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
App crash when uri is invalid (v.2.0.3) #71
Comments
Interesting, is that the exact url that failed? http:// should be ok, was there some other prefix? Thanks for reporting this! |
I just tested the url you gave just to be sure and the following works as I'd expect for me:
If you can provide a sample url that fails definitely let me know. As long as it starts with http:// or https:// it should be fine? |
Here is the actual URL
I don't know why server return this URL, but it does. Hope this help |
I'd guess it's because android's Uri class parses out http://myserver_url:80http:// as the content type. Glide registers a class to handle http://, but not that whole url. I can probably add a check if the content type fails to just see if the url starts with http:// or https://, though it's a shame android's uri parsing doesn't catch this weirdness. Thanks for the update! |
Glide should handle exception when download invalid image_url.
The text was updated successfully, but these errors were encountered: