PayPal Sandbox API 端点返回 503“内部服务错误"错误 [英] PayPal Sandbox API endpoint returning 503 "Internal Service Error" error

查看:44
本文介绍了PayPal Sandbox API 端点返回 503“内部服务错误"错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在https://api.sandbox 沙箱端点上使用PayPal REST API.paypal.com/v1/ 并且几乎每次我尝试使用有效请求发布付款/付款(注意不要被标记为重复尝试)时,它都会返回 503 错误.

I'm working with the PayPal REST API on the sandbox endpoint at https://api.sandbox.paypal.com/v1/ and nearly every single time I try to POST to payments/payment with a valid request (taking care not to be flagged as a duplicate attempt) it keeps returning a 503 error.

请求只是偶尔通过,但它只是更早地完成,现在每个请求都失败并返回 503 响应.即使我在 https://devtools-paypal 上使用 PayPal 的 REST Playground.com/hateoas/index.html?interactive=ON&env=sandbox 来构建他们的示例模板请求我得到以下响应:

Only very occasionally does the request go through but it only did that earlier and now every request is failing with a 503 response. Even when I use PayPal's REST Playground at https://devtools-paypal.com/hateoas/index.html?interactive=ON&env=sandbox to build their sample template request I get the following response:

响应标题

HTTP Status Code : 503
{
  "date": "Tue, 26 Apr 2016 04:19:28 GMT",
  "server": "Apache",
  "proxy_server_info": "host=slcsbplatformapiserv3002.slc.paypal.com;threadId=876",
  "paypal-debug-id": "56fbd9db69555",
  "connection": "close",
  "set-cookie": [
    "X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D1880%26app%3Dplatformapiserv%26TIME%3D1357651543%26HTTP_X_PP_AZ_LOCATOR%3D; Expires=Tue, 26 Apr 2016 04:49:58 GMT; domain=.paypal.com; path=/; Secure; HttpOnly",
    "X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT"
  ],
  "vary": "Authorization",
  "content-length": "145",
  "content-type": "application/json"
}

响应正文

{
  "name": "INTERNAL_SERVICE_ERROR",
  "information_link": "https://api.sandbox.paypal.com/docs/api/#INTERNAL_SERVICE_ERROR",
  "debug_id": "56fbd9db69555"
}

这太烦人了,我受不了了.有谁知道沙盒站点是否会不时宕机?有没有人遇到这种情况并意识到他们的请求做错了?同样,在我遇到问题后,我尝试在 REST Playground 页面中使用 PayPal 自己的示例模板提交给 API.

This is so incredibly annoying I can't stand it. Does anyone know if the sandbox site goes down from time to time? Has anyone run into this happening and realized they were doing something wrong in their request? Again, after I ran into the issue I tried submitting to the API using PayPal's very own example template in the REST Playground page.

推荐答案

关于INTERNAL_SERVICE_ERROR",在沙盒环境下,你的 API 请求中的测试信用卡是通用的,并且有很多账户附加到这张信用卡上,当PayPal执行您的API请求时,我们需要在交易过程中加载所有相关账户,因此导致超时错误和内部服务错误,请尝试一些很少使用的卡号,例如:

Regarding "INTERNAL_SERVICE_ERROR", in sandbox environment, the testing credit card in your API request is a generic one and there are lots of accounts attached to this credit card, when PayPal execute your API request, we need to load all the related accounts during transaction, so it caused time out error and internal service error, please try some rarely used card number, such as below:

签证 16 位

4916339731576481

4916339731576481

4916037567876898

4916037567876898

4024007171154213

4024007171154213

4532782720397175

4532782720397175

4556654893065114

4556654893065114

4539432483175995

4539432483175995

4716339122298416

4716339122298416

4532325401406798

4532325401406798

4539157680503828

4539157680503828

4124138105007679

4124138105007679

4485178251029161

4485178251029161

4916231960500037

4916231960500037

4058178241644969

4058178241644969

请试一试.

这篇关于PayPal Sandbox API 端点返回 503“内部服务错误"错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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