底层连接关闭的HTTP响应无效:发送时发生意外错误。 [英] Invalid HTTP response the underlying connection was closed: an unexpected error occurred on a send.

查看:160
本文介绍了底层连接关闭的HTTP响应无效:发送时发生意外错误。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Paypal集成中面临一些问题,

i发现此块的错误主要是调试时的最后一行代码。



< pre lang =C#> ReceiverList sl = new ReceiverList();
sl.receiver.Add(rec);
PayRequest req = new PayRequest( new RequestEnvelope( en_US), PAY
cancelURl, USD
sl, RETURNURL);
req.reverseAllParallelPaymentsOnError = true ;
AdaptivePaymentsService service = new AdaptivePaymentsService();

PayResponse resp = null ;

resp = service.Pay(req);





引用:
Service.Pay(REQ);是抛出错误:无效的HTTP响应底层连接已关闭:发送时发生意外错误





我尝试过:



更新Paypal帐户等的API设置并更新nuget包的最新参考。

解决方案

您需要联系Paypal支持部门,了解他们的回复为何未按预期发布。


i facing some problem in Paypal integration,
i find error of this block mainly last line of code on debug time .

ReceiverList sl = new ReceiverList();
           sl.receiver.Add(rec);
           PayRequest req = new PayRequest(new RequestEnvelope("en_US"), "PAY",
                              cancelURl, "USD",
                              sl, returnURL);
           req.reverseAllParallelPaymentsOnError = true;
           AdaptivePaymentsService service = new AdaptivePaymentsService();
 
           PayResponse resp = null;
 
           resp = service.Pay(req);



Quote:

Service.Pay(req); is throw error: Invalid HTTP response The underlying connection was closed: An unexpected error occurred on a send



What I have tried:

Update API Setting on Paypal Account etc and Update latest reference by nuget package .

解决方案

You will need to contact Paypal support to find out why their response is not coming as you would expect.


这篇关于底层连接关闭的HTTP响应无效:发送时发生意外错误。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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