I have csv objects that i can download with a blobkey. The endpoint looks like this /data?key=[blobkey]
. If i were to go into the datastore and find the csv key, replace it with the blobkey, i get the csv downloaded. The problem occurs when trying to generate new csv files. The bucket that i am saving the new scv files is one i created just recently. What should happen is that i should be getting a blobkey that i can replace in the endpoint and get a csv object. But i do not get anything.
My thinking is that i am just saving it inside of the wrong bucket. I should try to save it into the original bucket, where the other csv objects are. But i do not know how to search for those objects. I do know for sure that the csv exits because i can navigate to the bucket and download it there from the url https://storage.cloud.google.com/.../my.csv
My question is, how do i find the position of the bucket where the previous csv's were saved?
How i am downloading CSV in development server:
# obtain a blobkey
blob_key = BlobKey(blobstore.create_gs_key(u'/gs' + gcs_filename))
# pass the blobkey to the endpoint
/data?key=blob_key
the bucket i am is
/user-exports/user_key/timestamp/mydata.csv