尝试删除批次项目时出现Square-Connect 500错误

时间:2014-05-18 03:31:50

标签: square-connect

执行https://connect.squareup.com/v1/batch

的POST时收到500内部服务器错误

使用JSON对象

{"请求":[

{"方法":" DELETE&#34 ;,    " RELATIVE_PATH":" / V1 / ME /项目/ 13fd1363-2e1f-4b55-bfbf-f58b97814cfa&#34 ;,    "&的access_token#34;:" XXX-XXXXXXXXXXXXXXXXXX"},

{"方法":" DELETE&#34 ;,    " RELATIVE_PATH":" / V1 / ME /项目/ 9d415859-8758-4147-aa16-7088c84bb201&#34 ;,    "&的access_token#34;:" XXX-XXXXXXXXXXXXXXXXXX"}

]}

当单独删除相同的项目时,没有问题:

删除https://connect.squareup.com/v1/me/items/13fd1363-2e1f-4b55-bfbf-f58b97814cfa

此外,我已经能够批量执行库存调整,所以我认为我的技术还可以。

这是一个错误还是我做错了什么?

我正在修改原始帖子,以包含建议的样本回复

[
{
    "status_code": 200,
    "body": {},
    "request_id": "0"
},
{
    "status_code": 200,
    "body": {},
    "request_id": "1"
},
{
    "status_code": 200,
    "body": {},
    "request_id": "2"
},
{
    "status_code": 500,
    "body": {
        "type": "internal_server_error",
        "message": "InternalServerError"
    },
    "request_id": "3"
},
{
    "status_code": 200,
    "body": {},
    "request_id": "4"
},
{
    "status_code": 200,
    "body": {},
    "request_id": "5"
},
{
    "status_code": 200,
    "body": {},
    "request_id": "6"
},
{
    "status_code": 200,
    "body": {},
    "request_id": "7"
},
{
    "status_code": 200,
    "body": {},
    "request_id": "8"
},
{
    "status_code": 200,
    "body": {},
    "request_id": "9"
},
{
    "status_code": 200,
    "body": {},
    "request_id": "10"
},
{
    "status_code": 500,
    "body": {
        "type": "internal_server_error",
        "message": "InternalServerError"
    },
    "request_id": "11"
},
{
    "status_code": 200,
    "body": {},
    "request_id": "12"
},
{
    "status_code": 200,
    "body": {},
    "request_id": "13"
},
{
    "status_code": 200,
    "body": {},
    "request_id": "14"
},
{
    "status_code": 500,
    "body": {
        "type": "internal_server_error",
        "message": "InternalServerError"
    },
    "request_id": "15"
},
{
    "status_code": 200,
    "body": {},
    "request_id": "16"
},
{
    "status_code": 200,
    "body": {},
    "request_id": "17"
},
{
    "status_code": 500,
    "body": {
        "type": "internal_server_error",
        "message": "InternalServerError"
    },
    "request_id": "18"
},
{
    "status_code": 200,
    "body": {},
    "request_id": "19"
},
{
    "status_code": 200,
    "body": {},
    "request_id": "20"
},
{
    "status_code": 200,
    "body": {},
    "request_id": "21"
},
{
    "status_code": 200,
    "body": {},
    "request_id": "22"
},
{
    "status_code": 200,
    "body": {},
    "request_id": "23"
},
{
    "status_code": 200,
    "body": {},
    "request_id": "24"
}

1 个答案:

答案 0 :(得分:0)

这是我们修复过的错误,现在已经部署了更改。