Hey guys, I'm having trouble understanding why gateway timeout is given in a request, because being tested by cURL and it was normal, I'm using Basic Auth. Following:
var authorization = "apikey:";
HttpWebRequest wbRequest = (HttpWebRequest)WebRequest.Create("https://api.konduto.com/v1/orders/0");
ServicePointManager.ServerCertificateValidationCallback += delegate { return true; };
wbRequest.Headers["Authorization"] = string.Format("Basic {0}", authorization);
wbRequest.Method = "GET";
var response = (HttpWebResponse)wbRequest.GetResponse();
var stringFinally = "";
using (var reader = new StreamReader(response.GetResponseStream()))
{
stringFinally = reader.ReadToEnd();
}
When I get getResponse it comes back to me:
The remote server returned an error: (504) Gateway Timeout.
I would like to know if someone has already gone through this and how could I solve it, because via cURL the GET works normal.