You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by "Ji-Xinyou (via GitHub)" <gi...@apache.org> on 2023/05/03 11:56:08 UTC
[GitHub] [incubator-opendal] Ji-Xinyou commented on a diff in pull request #2200: fix(services/supabase): Supabase ci fix
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: commits-unsubscribe@opendal.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org