502请求蔚蓝的网站'内支付服务 [英] 502 requesting payment service inside azure 'website'

查看:253
本文介绍了502请求蔚蓝的网站'内支付服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我越来越从呼叫这个错误给外部的支付服务。而作为网关或代理服务器错误,只有当部署到Azure和完美的地方工作时。

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服务器收到了无效响应。
有与该页面的问题,你所寻找的,它无法显示。当Web服务器(同时作为网关或代理)联系上游内容服务器,它收到了来自内容服务器的响应无效。

"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."

支付服务类与此WDSL产生

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?

更新

我已经缩小问题下来了一点。 。下面控制器的测试方法会导致一个蓝色的网站,有502和重启死机

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似乎已经删除了一些HTTP协议的蔚蓝的网站。具体来说这是阻止它似乎SEC_I_RENEGOTIATE。

MS seem to have removed some of the HTTP protocol for azure website. Specifically this is blocked it seems SEC_I_RENEGOTIATE.

有没有变通?有谁知道,如果这种方法将在Web角色工作的?

Is there any work around? Does anyone know if this method will work in a web role?

推荐答案

你任何机会使用一个.pfx证书文件或相似?

Do you by any chance use a .pfx certificate file or similar?

如果是这样,你引用它可能会有问题在Azure中,应考虑使用Azure的CertificateStore,而不是让你的证书上的文件系统(如果你这样做的方式现在)

If so, the way you reference it could be problematic in Azure, consider using Azure CertificateStore instead of having your certificates on the filesystem(if you're doing this now)

有关更多详细信息:
https://msdn.microsoft.com/en-us/library/azure/gg465712.aspx

也与此有关

https://azure.microsoft.com/blog/2014/10/27/using-certificates-in-azure-websites-applications/

希望这有助于!祝你好运,这个问题一直是一个真正的噩梦我!

Hope this helps! Good luck to you, this problem has been a real nightmare for me!

这篇关于502请求蔚蓝的网站'内支付服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆