-
Notifications
You must be signed in to change notification settings - Fork 471
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
[Bug]: GetAsync in WebAPI.cs doesn't return response correctly in MAUI environment #1119
Comments
If I'm interpreting the bug description correctly, you're hanging on |
Yes, sounds about right. Would you like me to record a video of what happens? Edit: Also to clarify, I don't know of it's the CallAsyncInternal, or CallAsync that is causing the problem, since the hanging begins at the return line of the CallAsyncInternal. Thought I'd clarify that since I read the bug report again and realized I never mentioned which method's return statement it got stuck on. |
What did you expect to happen?
I test my code on a Console App before putting code in my MAUI application, and the code works perfectly there.
Instead of that, what actually happened?
However, when I put the nearly exact same code in my MAUI application found here, the application becomes indefinitely frozen. I traced this back to the GetAsync method in the WebAPI.cs file. The method calls GetAsyncInternal, which returns a response object. The return statement gets called, but for some reason, in the MAUI application, after the return statement runs, this is where the application starts hanging.
Please see additional information
Which operating system are you running on?
Windows
Which .NET Runtime are you running on?
.NET Framework
Version
6
Relevant log output
No response
Example Code
Additional Information
The entire project is open source, and the example code above is available in this file.
Currently in the process of seeing if this API can replace the old API I'm using, which is why the link above uses the new-api-testing branch. It's possible that I'm doing something wrong, but considering the code works in a console app, I'm very confused if I am doing something wrong. Thank you for looking at this problem. I am willing to provide as much information as possible, including debugging steps.
The text was updated successfully, but these errors were encountered: