Square-Connect 500 error when trying to delete batch of items -
received 500 internal server error executing post of https://connect.squareup.com/v1/batch
with json object
{"requests":[
{"method":"delete", "relative_path":"/v1/me/items/13fd1363-2e1f-4b55-bfbf-f58b97814cfa", "access_token":"xxx-xxxxxxxxxxxxxxxxxx"},
{"method":"delete", "relative_path":"/v1/me/items/9d415859-8758-4147-aa16-7088c84bb201", "access_token":"xxx-xxxxxxxxxxxxxxxxxx"}
]}
when same items deleted individually there no problem:
delete https://connect.squareup.com/v1/me/items/13fd1363-2e1f-4b55-bfbf-f58b97814cfa
also, have been able execute inventory adjustments in batch think technique ok.
is bug or doing wrong?
i'm amending original post include sample response suggested
[ { "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" }
]
this bug have fixed , change deployed.
Comments
Post a Comment