It's 2023, #dotnet7, and this is fubar is still happening in a #Blazor Hybrid #MAUI app:
"System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception.
---> System.IO.IOException: Cannot determine the frame size or a corrupted frame was received."
Meanwhile, back to 2021 in .NET 5.0 -- same: https://stackoverflow.com/questions/64610237/net-5-0-cannot-determine-the-frame-size-or-a-corrupted-frame-was-received
Things I hate about new Microsoft APIs. Completely untested alpha quality, and tied to OS version. Need Win11 upgrade from Win10? wth.
Follow-up, a simple error of "Uri and/or PORT doesn't support https" would save many hours here.
@ShrikeTron in #blazor hybrid #dotnetmaui I think you don't need https because the pages are all rendered locally within the app. Unless yours is doing something different than what I'm envisioning.
@TimPurdum I'm using blazor hybrid to make it easy to interface with web/rest APIs while having a simple, generic web/SPA UI front.
Trying to make a Lists importer! The remote REST (Mastodon!) APIs are https and also need login.
"Conveniently", popping up an external browser to login (AuthorizeAsync) has been completely broken for WinUI for the last 3 years.
I may switch to #Uno as #MAUI is still not production ready. I need a UI-based app that can run on many OS without web hosting.
@ShrikeTron yeah, the lack of Oauth support has bitten me as well. Blazor definitely doesn't solve it, it still requires an external browser. There was someone with a workaround in one of the Gissues, I'll see if I can find it.
@TimPurdum Right, I flied a GitHub against that API as the issue started in at least 09/2021 and is STILL unresolved.
I tried out the only solution (hack by @dotMorten) and then hit another wall where the thread didn't have some necessary permissions.
They closed that issue to combine it with https://github.com/microsoft/WindowsAppSDK/issues/441 where people are still begging for updates right up to June 4, 2023 !