代码 "not_found" 消息 "No trip with id ..."
Code "not_found" with message "No trip with id ..."
我收到 requset_id = XXX "GET /history" 请求。
发送 "GET /requests/XXX" 请求时,我 return 发送了一个包含所有关于请求集信息的有效响应,但如果它是 'PUT /sandbox/requests/XXX' UBER 服务器 return {'code':'not_found' , 'message':'No trip with id XXX'}
您正在使用 GET 命令查看真实请求。但是,Sandbox for PUT /sandbox/requests/{request_id} 只允许您修改沙盒请求 仅 。您必须创建一个具有相同正文的新请求,但将其发送到不同的基础 URL:https://sandbox-api.uber.com
,如下所示:
curl -X POST -H "Authorization: Bearer <ACCESS_TOKEN>" \
-H "Content-Type: application/json" -d \
'{"product_id": "", "start_latitude":"", "start_longitude": "", "end_latitude":"", "end_longitude": "", "seat_count": "", "fare_id":""}' \
https://sandbox-api.uber.com/v1.2/requests
我收到 requset_id = XXX "GET /history" 请求。 发送 "GET /requests/XXX" 请求时,我 return 发送了一个包含所有关于请求集信息的有效响应,但如果它是 'PUT /sandbox/requests/XXX' UBER 服务器 return {'code':'not_found' , 'message':'No trip with id XXX'}
您正在使用 GET 命令查看真实请求。但是,Sandbox for PUT /sandbox/requests/{request_id} 只允许您修改沙盒请求 仅 。您必须创建一个具有相同正文的新请求,但将其发送到不同的基础 URL:https://sandbox-api.uber.com
,如下所示:
curl -X POST -H "Authorization: Bearer <ACCESS_TOKEN>" \
-H "Content-Type: application/json" -d \
'{"product_id": "", "start_latitude":"", "start_longitude": "", "end_latitude":"", "end_longitude": "", "seat_count": "", "fare_id":""}' \
https://sandbox-api.uber.com/v1.2/requests