【发布时间】:2021-06-04 11:44:54
【问题描述】:
我正在尝试使用条带 api 调用从 asp.net mvc 项目中的条带获取价格。这些代码在本地工作并从条带获取所有价格,但是当我在生产服务器中运行代码时,它显示并出错。 我正在使用此代码
StripeConfiguration.ApiKey = "my-key";
var options = new PriceListOptions { Limit = 10,Active=true };
options.AddExpand("data.product");
var service = new PriceService();
StripeList<Price> prices = service.List(options);
return View(prices);
它在线显示的错误是
连接尝试失败,因为连接方在一段时间后没有正确响应,或者连接失败,因为连接的主机没有响应 34.241.54.72:80
【问题讨论】:
标签: asp.net-mvc api stripe-payments http-status-code-500