Ok, Adam, thanks, I'll check that out when I finish what I'm on...

It is a bit of a pain though, as if you need to delete items from cloud 
that are in two different buckets in the same rpc, whilst testing on 
localhost, you can't.


On Monday, May 8, 2017 at 8:54:45 PM UTC+3, Adam (Cloud Platform Support) 
wrote:
>
> Just noticed the Development/2.0 string in the response. When testing on 
> the development server, the Cloud Storage client only interacts with the 
> default bucket or the bucket set as the default on the command line. You 
> can change the default bucket 
> <https://cloud.google.com/appengine/docs/standard/python/googlecloudstorageclient/setting-up-cloud-storage#using_the_client_library_with_the_development_app_server>
>  
> by running dev_appserver.py with the --default_gcs_bucket_name 
> [BUCKET_NAME] flag.
>
> On Sunday, May 7, 2017 at 3:10:43 PM UTC-4, Richard Cheesmar wrote:
>>
>> It works when I delete an image cloudstorage.delete(image). However, that 
>> image is in the apps default bucket.
>>
>>
>> On Sunday, May 7, 2017 at 9:11:38 PM UTC+3, Adam (Cloud Platform Support) 
>> wrote:
>>>
>>> Is this called from an App Engine standard app in production? Are you 
>>> authenticating using specific credentials or using the default application 
>>> credentials?
>>>
>>> On Sunday, May 7, 2017 at 9:49:02 AM UTC-4, Richard Cheesmar wrote:
>>>>
>>>> I am trying to delete a file (video) from Google Cloud Storage via the 
>>>> cloudstorage api but although the file exists I'm getting the following 
>>>> error:
>>>>
>>>> cloudstorage.delete('/catchamove-video/products/6411421952770048.mp4')
>>>>
>>>> *** NotFoundError: Expect status [204] from Google Storage. But got 
>>>> status 404.
>>>> Path: '/catchamove-video/products/6411421952770048.mp4'.
>>>> Request headers: None.
>>>> Response headers: {'transfer-encoding': 'chunked', 'date': 'Sun, 07 
>>>> May 2017 12:31:47 GMT', 'server': 'Development/2.0'}.
>>>> Body: ''.
>>>> Extra info: None.
>>>> Both the bucket and file are present on the console.
>>>>
>>>> I have several buckets and this file is not in the default bucket...
>>>>
>>>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/9dedd64e-9c18-4e5a-88e1-b7704b59bdbe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to