PayPal Sandbox API端点返回503“内部服务错误".错误 [英] PayPal Sandbox API endpoint returning 503 "Internal Service Error" error
问题描述
我正在沙盒终结点的 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:
VISA 16位数字
VISA 16 digit
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屋!