503 Service unavaible on Android/MAUI with HttpClient

PressRex profile image
by PressRex
503 Service unavaible on Android/MAUI with HttpClient

im working with MAUI to create my App. Sometimes my endpoint throws "503 Service unavaible" on my App while this is reachable on other systems.

HttpClient _client = new HttpClient();
_client.DefaultRequestHeaders.TryAddWithoutValidation("Authorization", _ud.sess_id);

string endpoint= "https://............."
            var response = await _client.GetAsync(endpoint);
            var r = await response.Content.ReadAsStringAsync();

            if (response.StatusCode != System.Net.HttpStatusCode.OK)
            {
                await DisplayAlert("Info", r, "OK");
                return;
            }

The problem stays for a day on all Android phones, then it works fine for days. On IOS there is no Problem with the same code.

Server is up and good.

Is this a known Problem and how to solve it?

Source: View source

PressRex profile image
by PressRex

Subscribe to New Posts

Lorem ultrices malesuada sapien amet pulvinar quis. Feugiat etiam ullamcorper pharetra vitae nibh enim vel.

Success! Now Check Your Email

To complete Subscribe, click the confirmation link in your inbox. If it doesn’t arrive within 3 minutes, check your spam folder.

Ok, Thanks

Read More