Xuanwo opened a new pull request, #2028:
URL: https://github.com/apache/incubator-opendal/pull/2028

   Services like cos can't handle empty query correctly:
   
   ```shell
   [2023-04-18T11:15:03Z ERROR opendal::services] service=s3 operation=scan 
path=x/ -> failed: Unexpected (permanent) at Pager::next => S3Error { code: 
"InvalidArgument", message: "Invalid Argument", resource: "/", request_id: 
"NjQzZTdiYjdfMTQ5MDBjMGJfMjZjMmRfMThhM2NkOQ==" }
       
       Context:
           response: Parts { status: 400, version: HTTP/1.1, headers: 
{"content-type": "application/xml", "content-length": "411", "connection": 
"keep-alive", "date": "Tue, 18 Apr 2023 11:15:03 GMT", "server": "tencent-cos", 
"x-amz-request-id": "NjQzZTdiYjdfMTQ5MDBjMGJfMjZjMmRfMThhM2NkOQ==", 
"x-amz-trace-id": 
"OGVmYzZiMmQzYjA2OWNhODk0NTRkMTBiOWVmMDAxODczNTBmNjMwZmQ0MTZkMjg0NjlkNTYyNmY4ZTRkZTk0N2U1NmFlOGIyM2Y0NWQyNTA2YzEzYjVkZDExYzhhNmI2YzU0MTZkYTQxZDQwYWU2ODNmMDZlN2Q4ZjEzZTA0MTg="}
 }
           service: s3
           path: x/
       
   [2023-04-18T11:15:03Z DEBUG opendal::services] service=s3 operation=scan 
path=x/ -> partial entries read finished
   Error: Unexpected (permanent) at Pager::next, context: { response: Parts { 
status: 400, version: HTTP/1.1, headers: {"content-type": "application/xml", 
"content-length": "411", "connection": "keep-alive", "date": "Tue, 18 Apr 2023 
11:15:03 GMT", "server": "tencent-cos", "x-amz-request-id": 
"NjQzZTdiYjdfMTQ5MDBjMGJfMjZjMmRfMThhM2NkOQ==", "x-amz-trace-id": 
"OGVmYzZiMmQzYjA2OWNhODk0NTRkMTBiOWVmMDAxODczNTBmNjMwZmQ0MTZkMjg0NjlkNTYyNmY4ZTRkZTk0N2U1NmFlOGIyM2Y0NWQyNTA2YzEzYjVkZDExYzhhNmI2YzU0MTZkYTQxZDQwYWU2ODNmMDZlN2Q4ZjEzZTA0MTg="}
 }, service: s3, path: x/ } => S3Error { code: "InvalidArgument", message: 
"Invalid Argument", resource: "/", request_id: 
"NjQzZTdiYjdfMTQ5MDBjMGJfMjZjMmRfMThhM2NkOQ==" }
   
   
   failures:
       services_s3_list::test_scan
       services_s3_list::test_scan_root
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to