User61956409 posted
Hi vahid.ch,
If possible, you can try to access this API endpoint from browser, and check if you can find more/detailed error message, which would help troubleshoot the issue.
And you can also try to check if there are any useful information in response content, like below.
using (var client = new HttpClient())
{
client.BaseAddress = new Uri("http://x.x.x.x:90");
//code logic
//GET Method
HttpResponseMessage response = await client.GetAsync("/api/Get_Customer?username=edf&password=erw&idno=12345");
Stream stream = await response.Content.ReadAsStreamAsync();
StreamReader reader = new StreamReader(stream);
string rc = reader.ReadToEnd();
}
Besides, you can check logging file to get error logs if you can access the hosting server.
With Regards,
Fei Han