I am getting this error from a call to an external payment service. The error only occurs when deployed to azure and works perfectly locally.
"Web server received an invalid response while acting as a gateway or proxy server. There is a problem with the page you are looking for, and it cannot be displayed. When the Web server (while acting as a gateway or proxy) contacted the upstream content server, it received an invalid response from the content server."
The payment service class are generated with this wdsl
https://pal-test.adyen.com/pal/Payment.wsdl
It appears that the error occurs in the authorise method of the Payment class but I cant get azure to log anything useful even when all logging options are on.
Has anyone else had this problem?
UPDATE
I have narrowed the problem down a little. The test method of the controller below will cause an azure website to crash with a 502 and restart.
public class TestController : Controller
{
public string test()
{
try
{
var webClient = new WebClient();
var stream = webClient.OpenRead("https://pal-test.adyen.com/pal/servlet/soap/Payment");
var streamReader = new StreamReader(stream);
return streamReader.ReadToEnd();
}
catch (Exception exp)
{
errorResult(exp);
}
return formattedResult(result);
}
}
MS seem to have removed some of the HTTP protocol for azure website. Specifically this is blocked it seems SEC_I_RENEGOTIATE.
Is there any work around? Does anyone know if this method will work in a web role?