Google Batch API请求解析失败,Drive API相关测试套件异常求助
Google Batch API调用Drive API测试全部失败
测试套件中,使用Google Batch API调用Google Drive API的测试目前全部失败。此前这些测试均可正常运行,且未发现上述任一API有公开的变更记录。
请求详情(从Chromium开发者工具复制)
:authority: www.googleapis.com :method: POST :path: /batch/drive/v3?key=<GDRIVE_API_KEY> :scheme: https Accept: */* Accept-Encoding: gzip, deflate, br Accept-Language: en-US,en;q=0.9 Content-Length: 2740 Content-Type: multipart/mixed; boundary=eeedd3d5-cd3e-4d26-91e7-f6823904fe5f Origin: https://OUR.LOCAL.TESTDOMAIN:PORT Sec-Ch-Ua: "Chromium";v="115", "Not/A)Brand";v="99" Sec-Ch-Ua-Mobile: ?0 Sec-Ch-Ua-Platform: "Linux" Sec-Fetch-Dest: empty Sec-Fetch-Mode: cors Sec-Fetch-Site: cross-site User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36 X-Client-Data: CMbaygE= 解码后: message ClientVariations { // 活跃客户端实验变体ID。 repeated int32 variation_id = [3321158]; }
请求体
--eeedd3d5-cd3e-4d26-91e7-f6823904fe5f content-transfer-encoding: binary content-type: application/http GET https://www.googleapis.com/drive/v3/files/<FILE_ID-1>?key=<GDRIVE_API_KEY> --eeedd3d5-cd3e-4d26-91e7-f6823904fe5f content-transfer-encoding: binary content-type: application/http GET https://www.googleapis.com/drive/v3/files/<FILE_ID-2>?key=<GDRIVE_API_KEY> --eeedd3d5-cd3e-4d26-91e7-f6823904fe5f content-transfer-encoding: binary content-type: application/http GET https://www.googleapis.com/drive/v3/files/<FILE_ID-3>?key=<GDRIVE_API_KEY> --eeedd3d5-cd3e-4d26-91e7-f6823904fe5f content-transfer-encoding: binary content-type: application/http GET https://www.googleapis.com/drive/v3/files/<FILE_ID-4>?key=<GDRIVE_API_KEY> --eeedd3d5-cd3e-4d26-91e7-f6823904fe5f content-transfer-encoding: binary content-type: application/http GET https://www.googleapis.com/drive/v3/files/<FILE_ID-5>?key=<GDRIVE_API_KEY> --eeedd3d5-cd3e-4d26-91e7-f6823904fe5f content-transfer-encoding: binary content-type: application/http GET https://www.googleapis.com/drive/v3/files/<FILE_ID-6>?key=<GDRIVE_API_KEY> --eeedd3d5-cd3e-4d26-91e7-f6823904fe5f--
注:请求中的文件ID和API密钥已分别替换为<FILE_ID-X>和<GDRIVE_API_KEY>。
服务器响应
[{ "error": { "code": 400, "message": "解析批量请求失败,错误:解析HTTP标头失败:(121字节已编辑)。收到的批量请求体:(0字节已编辑)", "errors": [ { "message": "解析批量请求失败,错误:解析HTTP标头失败:(121字节已编辑)。收到的批量请求体:(0字节已编辑)", "domain": "全局", "reason": "请求错误", "status": "参数无效" } ], "status": "INVALID_ARGUMENT" } } ]
内容的提问来源于stack exchange,提问作者rorymichele
相关产品推荐
相关产品推荐

