ImagesService getServingUrl fails often

146 views
Skip to first unread message

Wilson MacGyver

unread,
Sep 17, 2013, 12:56:26 PM9/17/13
to google-a...@googlegroups.com
Hi,

We have a java app that calls ImagesService to get a serving url
via getServingUrl API call

I notice we get ImagesServiceFailureException A LOT.

Has anyone come across this?

Thanks

--
Omnem crede diem tibi diluxisse supremum.

Alex Burgel

unread,
Sep 17, 2013, 2:19:06 PM9/17/13
to google-a...@googlegroups.com
On Tuesday, September 17, 2013 12:56:26 PM UTC-4, Mac wrote:
Hi,

We have a java app that calls ImagesService to get a serving url
via getServingUrl API call

I notice we get ImagesServiceFailureException A LOT.

Has anyone come across this?

In my experience its one of the less reliable App Engine services. I had to change my app to store the serving url in one of my models. I recommend you do the same.

Wilson MacGyver

unread,
Sep 17, 2013, 2:20:54 PM9/17/13
to google-a...@googlegroups.com
Thanks, actually that's what I'm doing. the problem is getting the initial serving url is failing a lot. :(


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

Vinny P

unread,
Sep 17, 2013, 7:41:34 PM9/17/13
to google-a...@googlegroups.com
On Tue, Sep 17, 2013 at 11:56 AM, Wilson MacGyver <wmac...@gmail.com> wrote:

We have a java app that calls ImagesService to get a serving url
via getServingUrl API call

I notice we get ImagesServiceFailureException A LOT.

 

Sometimes getServingUrl fails if you call it too soon after uploading the image. How much time elapses between image upload and the serving URL call?


If you're still having problems, you can place the serving URL call within a task and repeatedly redo the task until it succeeds, then save the url into the datastore.

 
-----------------
-Vinny P
Technology & Media Advisor
Chicago, IL

App Engine Code Samples: http://www.learntogoogleit.com

Wilson MacGyver

unread,
Sep 17, 2013, 9:37:21 PM9/17/13
to google-a...@googlegroups.com
I thought of that too. It's 24-48 hours later after the images have been uploaded into google cloud storage.

I have a try/catch to repeat try up to X attempts. I'm just surprised how often it fails


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

Theodore Book

unread,
Oct 11, 2013, 9:12:36 PM10/11/13
to google-a...@googlegroups.com
Are you still having this problem? I noticed today that *every* request that I make to get a serving URL is failing with an ImagesServiceFailureException.  I'm not sure how long this has been going on - a couple of days at most, probably just hours.  There was no change in my code; just the repeated failure.  Is anyone else experiencing this?


Wilson MacGyver

unread,
Oct 14, 2013, 2:16:55 PM10/14/13
to google-a...@googlegroups.com
It still happens every so often. I just catch the exception and mark particular file for retry later. With enough retries spaced out, I eventually get perma url for all of them.

not the best solution, but the only one I found that worked for me


On Fri, Oct 11, 2013 at 9:12 PM, Theodore Book <theodo...@gmail.com> wrote:
Are you still having this problem? I noticed today that *every* request that I make to get a serving URL is failing with an ImagesServiceFailureException.  I'm not sure how long this has been going on - a couple of days at most, probably just hours.  There was no change in my code; just the repeated failure.  Is anyone else experiencing this?


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

Theodore Book

unread,
Oct 14, 2013, 2:24:09 PM10/14/13
to google-a...@googlegroups.com
Thanks for the response!  I realized that most of my problems were due to some empty URLs that I was passing to getServingUrl().  It turns out that I am not seeing consistent failure of the API.


You received this message because you are subscribed to a topic in the Google Groups "Google App Engine" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-appengine/JwW9CwNoWqA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-appengi...@googlegroups.com.

Wilson MacGyver

unread,
Oct 14, 2013, 2:55:44 PM10/14/13
to google-a...@googlegroups.com
glad to see you found the problem. I think imageService can use some better error messages :)
Reply all
Reply to author
Forward
0 new messages