Ji-Xinyou commented on code in PR #2200:
URL:
https://github.com/apache/incubator-opendal/pull/2200#discussion_r1183587380
##########
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:
The reason here is that the supabase stores their actual response in the
body.
For example, if status_core is 404, it is in the body, not in the header
(which is really weird....).
Hence here if we want to get the metadata like filesize, we have to use
`HEAD`. And if any error returns, we send another HTTP request to
`/object/info` to actually get the error.
--
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]