Ji-Xinyou commented on code in PR #2200:
URL:
https://github.com/apache/incubator-opendal/pull/2200#discussion_r1183715024
##########
core/src/services/supabase/backend.rs:
##########
@@ -259,16 +286,38 @@ impl Accessor for SupabaseBackend {
return Ok(RpStat::new(Metadata::new(EntryMode::DIR)));
}
- let resp = self.core.supabase_get_object_info(path).await?;
+ // The get_object_info does not contain the file size. Therefore
Review Comment:
> I believe it's another new issue😂. For now, we can parse it from the real
output.
Another weird thing. I tried to print the body and get a handmade schema.
Here is the code I used.
```Rust
let resp = self.core.supabase_get_object_info(path).await?;
let (header, body) = resp.into_parts();
println!("{:?}", &header);
println!("{:?}", &body.bytes().await?);
```
This is what is printed
```text
Parts { status: 200, version: HTTP/1.1, headers: {"content-type":
"application/octet-stream",
"content-length": "0", "connection": "keep-alive", "accept-ranges": "bytes",
"etag": "\"d7f191a1a4e3395eb8cd372561486268\"", "last-modified": "Wed, 03
May 2023 13:44:46 GMT",
"cache-control": "no-cache", "date": "Wed, 03 May 2023 13:44:46 GMT",
"access-control-allow-origin": "*", "x-kong-upstream-latency": "30",
"x-kong-proxy-latency": "0", "via": "kong/2.8.1"} }
b""
```
which means the body is empty, and the content-length is zero 🤣 . Seems
there are no workarounds other than doing what is done in the PR.
--
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]