elixir-google-api icon indicating copy to clipboard operation
elixir-google-api copied to clipboard

404 error for nested folder

Open vijaysebastian opened this issue 4 years ago • 3 comments

I have a bucket called turbocomply-new, and inside that i have 9b8d64bf-4108-48db-86ad-d7481cc08564 folder inside that i have 0f11f37c-4ca4-11eb-8c9c-88e9fe822525.png file. my folder structure is turbocomply-new -> 9b8d64bf-4108-48db-86ad-d7481cc08564 -> 0f11f37c-4ca4-11eb-8c9c-88e9fe822525.png

this is what I am using to the object {:ok, body} = GoogleApi.Storage.V1.Api.Objects.storage_objects_get(gconn, "turbocomply-new", "9b8d64bf-4108-48db-86ad-d7481cc08564/0f11f37c-4ca4-11eb-8c9c-88e9fe822525.png",[{:alt, "media"}], decode: false)

but I'm getting status: 404, url: "https://storage.googleapis.com/storage/v1/b/turbocomply-new/o/9b8d64bf-4108-48db-86ad-d7481cc08564/0f11f37c-4ca4-11eb-8c9c-88e9fe822525.png"

is there any way to get the object? I checked the object inside turbocomply-new bucket and it's working

vijaysebastian avatar Feb 10 '21 08:02 vijaysebastian

I'm also seeing this issue in 0.28.0 - but this works fine in 0.23.0 so seems like a bug.

davidye avatar Feb 10 '21 22:02 davidye

It's possible this is related to #6352.

dazuma avatar Feb 19 '21 00:02 dazuma

Updating to 0.29 fixed the issue for me.

antedeguemon avatar Mar 31 '21 14:03 antedeguemon