Uber Rush 交付更新失败(沙盒)
Uber Rush delivery update fails (sandbox)
对于我尝试过的所有交付,发出以下请求都失败了(除了昨天成功的第一个)。
curl -X PUT https://sandbox-api.uber.com/v1/sandbox/deliveries/e4084dd3-9152-4cb8-8748-2200715a5eca -H "Authorization: Bearer <access_token>" -d "{\"status\":\"en_route_to_pickup\"}" -H "Content-Type: application/json"
以上失败,错误代码为 400 和正文
{
"message": "Bad request for delivery update",
"code": "bad_delivery_update"
}
知道请求可能有什么问题吗?
您要更新到的状态必须是有效状态转换的一部分,如 Delivery Statuses page 上的图表所示。如果当前状态是en_route_to_pickup
,那么下一个状态一定是at_pickup
.
对于我尝试过的所有交付,发出以下请求都失败了(除了昨天成功的第一个)。
curl -X PUT https://sandbox-api.uber.com/v1/sandbox/deliveries/e4084dd3-9152-4cb8-8748-2200715a5eca -H "Authorization: Bearer <access_token>" -d "{\"status\":\"en_route_to_pickup\"}" -H "Content-Type: application/json"
以上失败,错误代码为 400 和正文
{
"message": "Bad request for delivery update",
"code": "bad_delivery_update"
}
知道请求可能有什么问题吗?
您要更新到的状态必须是有效状态转换的一部分,如 Delivery Statuses page 上的图表所示。如果当前状态是en_route_to_pickup
,那么下一个状态一定是at_pickup
.