I started noticing something that might be related today. I store images in
the Blob Store as well, and the generated serving URL works when I open it
in a browser. But that same URL returns 404 when I fetch it from inside the
app with urlfetch. It wasn't working for a few hours, but now it is.
Something is not right.




On Wed, Sep 25, 2013 at 11:50 PM, Aritz Uriarte de Alayo
<ar...@egolike.com>wrote:

> Hi Vinny!
>
> Well, the thing about this issue is that all urls I stored in my Model are
> correct, I mean, they point out to the correct pictures, but Google Cloud
> Storage or what have you is having some performance problems.
>
> I say that because it seems to be fixed from time to time only to get the
> same problem back for 1-2 hours and then wokr fine again. The Image files
> are "image/jpeg", but as I said, those urls I use work wonders usually, it
> has only been recently that they are being slow showing the pictures.
>
> The aspect ratio is maintained if you use the "=sXXX" param at the end of
> the url as far as I know, and the maximum parameter value I send is 640. To
> be fair, when I set that parameter to 100 or 200 it works blazing fast, but
> when there are performance issues the server randomly sends me to 500 Error
> pages when using a url with "=s640". Another fun fact is that if you reload
> that url in the browser once or twice it ends up loading the image without
> issues, and further accesses to said url (with the parameter set to 640)
> are instantaneous.
>
> To make it clear, I use the (
> ImagesServiceFactory.getImagesService().getServingUrl(suo); ) method to
> generate the url once and store it in my Model. Such url is created using a
> BlobKey generated from a Google Cloud Storage image/jpeg file and then I
> serve it with different resolutions attaching "=sXXX" at the end of such
> url.
>
> The problem seems to come and go these days while it worked perfectly for
> over 2 weeks prior to this, which leads me to think it has something to do
> with Google Cloud Storage maintenance or BlobStore acting weird.
>
> Anyway, thanks for the reply!
>
> On Wednesday, September 25, 2013 3:47:30 PM UTC+2, Vinny P wrote:
>>
>> On Mon, Sep 23, 2013 at 8:32 AM, Aritz Uriarte de Alayo <
>> ar...@egolike.com> **wrote:
>>
>>
>>> We have an application that stores image files in Google Cloud Storage
>>> and uses Blob Store to serve the ImageUrls. To prevent the server lag when
>>> generating said urls we decided to store them in some Model classes. Then,
>>> if we needed to serve the images at different pixel resolutions we could
>>> attach "=sXXX" to the end of the url as mentioned in the documentation.
>>>
>>> Now this has been working perfectly up until this past friday
>>> (09/20/2013), ever since then, some urls would take like 6-8 seconds to
>>> load the image or just straight up send an error message like this
>>>
>>
>>
>> ImagesService occasionally has difficulty processing certain types of
>> images. For the images you're encountering problems with, do they share
>> anything in common? For example, are they extremely large, small, a certain
>> filetype, etc?
>>
>> Try resizing the image by maintaining the aspect ratio; i.e. if you
>> reduce the height by 50%, also reduce the width by 50%. If you must resize
>> by differing percentages, try instead to use the crop tool.
>>
>>
>>
>> -----------------
>> -Vinny P
>> Technology & Media Advisor
>> Chicago, IL
>>
>> App Engine Code Samples: 
>> http://www.**learntogoogleit.com<http://www.learntogoogleit.com/>
>>
>>  --
> 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 google-appengine+unsubscr...@googlegroups.com.
> To post to this group, send email to google-appengine@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-appengine.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
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 google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to