Relative Content

Tag Archive for json.netmauibreakpointspostasync

Cursor dissapears when usin PostAsync .Net Maui

I am Posting a JSON in .Net Maui to HTTPClient that works correctly the most time. But sometimes it fails.
I have RestService class that contains a method called PostJason and my code is inside try/catch but when it reaches the POST line, the cursor of the program dissapear and it doesn´t continues the program and never pass through catch.
I have tested it with a break point and that is the line that sometimes fails.