1

I'm working with MAUI to create my App. Sometimes my endpoint throws "503 Service unavailable" 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?

3
  • 1
    generally any 5xx error is a server issue, and you need to debug the code and examine the logs on the server to see what the problem is Commented Jan 23 at 14:58
  • Read following : stackoverflow.com/questions/55354045/… Commented Jan 23 at 19:48
  • Have you tried other uri? Does it still happen? Commented Jan 27 at 2:19

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.