maui: [Bug] UriImageSourceService fails to load some images on Windows
Steps to Reproduce
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="MauiApp3.MainPage">
<VerticalStackLayout VerticalOptions="Start">
<Label Text="1:"/>
<Image MaximumHeightRequest="80"
Source="https://upload.wikimedia.org/wikipedia/commons/thumb/b/ba/Paintedcats_Red_Star_standing.jpg/187px-Paintedcats_Red_Star_standing.jpg"/>
<Label Text="2"/>
<Image MaximumHeightRequest="80"
Source="https://upload.wikimedia.org/wikipedia/commons/f/f6/Mammuthus_exilis.jpg"/>
<Label Text="3"/>
<Image MaximumHeightRequest="80"
Source="https://upload.wikimedia.org/wikipedia/commons/thumb/e/e8/Sphinx2_July_2006.jpg/180px-Sphinx2_July_2006.jpg"/>
</VerticalStackLayout>
</ContentPage>
Expected Behavior
All images are displayed.
Actual Behavior
Only the first one is displayed.
If you load the image inside a browser first then WinUI is able to load the image.
Logs:
Microsoft.Maui.UriImageSourceService: Warning: Unable to load image URI 'https://upload.wikimedia.org/wikipedia/commons/thumb/e/e8/Sphinx2_July_2006.jpg/180px-Sphinx2_July_2006.jpg'.
System.InvalidOperationException: Unable to load image stream.
at Microsoft.Maui.UriImageSourceService.GetImageSourceAsync(IUriImageSource imageSource, Single scale, CancellationToken cancellationToken)
Microsoft.Maui.UriImageSourceService: Warning: Unable to load image URI 'https://upload.wikimedia.org/wikipedia/commons/f/f6/Mammuthus_exilis.jpg'.
System.InvalidOperationException: Unable to load image stream.
at Microsoft.Maui.UriImageSourceService.GetImageSourceAsync(IUriImageSource imageSource, Single scale, CancellationToken cancellationToken)
Basic Information
- Version with issue: MAUI Preview 8
- SKD: net6.0-windows10.0.19041
It works fine on Android.
Screenshots

Reproduction Link
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 2
- Comments: 17 (9 by maintainers)
@PureWeen Yes, if I open the image in browser beforehand, it does show up.