[appengine-java] Re: Youtube api issues - too many recent calls only on GAE

2010-01-14 Thread Kishore Jaladi
Hi Jason,
- The GAE Application ID is aslituberprod
- Yes, we are caching youtube data and refreshing it only 6 times an
hour (not exactly once an hour).
- And yes, I am using googe data client library for java to read data
from Youtube.
- I used to get "yt:quotatoo_many_recent_calls" very frequently
when querying for videos from a particular user using the feedurl:
"http://gdata.youtube.com/feeds/api/users//uploads". It
stopped after replaced it with - ""http://gdata.youtube.com/feeds/api/
videos" and used query.setAuthor(userID);
- Now, I have the Comments-read for a given video is failing with the
same error almost 90% of the times. I am using the url feed: "http://
gdata.youtube.com/feeds/api/videos//comments" to read
comments...I tried using "http://gdata.youtube.com/feeds/api/videos/
/comments/client=aslitubeprod", but still the same. I am not
using youtube authentication.  Below is the stack trace I get.

And yes, this happens only when I host it on GAE. It does not happen
on my localhost (Jetty)...and it does not happen if I host it on other
free hosts like Eat Jsp etc.
Please advise.

com.dtkt.tasveer.business.VideoManager populateVideoComments: Loading
comments failed from url 
http://gdata.youtube.com/feeds/api/videos/x-eVZgK9O8w/comments.
Probably a youtube issue
com.google.gdata.util.ServiceForbiddenException: OK
yt:quotatoo_many_recent_calls

at com.google.gdata.client.http.HttpGDataRequest.handleErrorResponse
(HttpGDataRequest.java:560)
at com.google.gdata.client.http.GoogleGDataRequest.handleErrorResponse
(GoogleGDataRequest.java:543)
at com.google.gdata.client.http.HttpGDataRequest.checkResponse
(HttpGDataRequest.java:535)
at com.google.gdata.client.http.HttpGDataRequest.execute
(HttpGDataRequest.java:514)
at com.google.gdata.client.http.GoogleGDataRequest.execute
(GoogleGDataRequest.java:515)
at com.google.gdata.client.Service.getFeed(Service.java:1034)
at com.google.gdata.client.Service.getFeed(Service.java:897)
at com.google.gdata.client.GoogleService.getFeed(GoogleService.java:
631)
at com.google.gdata.client.Service.getFeed(Service.java:916)


Thanks
- Kishore

On Jan 12, 3:03 pm, "Jason (Google)"  wrote:
> First, what is your application ID? Second, how do you guarantee that you
> only make the call once per hour? Do you have it set up as a cron job or are
> you just making the call once a memcache value expires or are you using
> another mechanism? What kind of call are you making to the YouTube API and
> what is the specific YouTube quota that you are hitting? Lastly, are you
> using the YouTube API directly or are you using the Google Data client
> library for Java?
>
> - Jason
>
> On Mon, Jan 11, 2010 at 6:18 PM, Kishore Jaladi 
> wrote:
>
> > Hi,
> > We have a small YoutubeAPI mashup App hosted on Google App engine.
> > From last friday; we have been getting yt:quota -
> > too_many_recent_calls error from youtube even though we call once in
> > an hour. We suspected Google App engine; and hosted our war to some
> > hosting provider & it was Rock Solid & we are NOT getting those
> > youtube quota limit errors (too_many_recent_calls). Unable to
> > understand why we are getting that error only when we host on Google
> > App engine . Are there any problems with Google App engine from the
> > last few days?
>
> > Any help would be greatly appreciated
>
> > Thanks,
> > -Kishore
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google App Engine for Java" group.
> > To post to this group, send email to
> > google-appengine-j...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-appengine-java+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-appengine-java?hl=en.
-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.




[appengine-java] Youtube api issues - too many recent calls only on GAE

2010-01-11 Thread Kishore Jaladi
Hi,
We have a small YoutubeAPI mashup App hosted on Google App engine.
>From last friday; we have been getting yt:quota -
too_many_recent_calls error from youtube even though we call once in
an hour. We suspected Google App engine; and hosted our war to some
hosting provider & it was Rock Solid & we are NOT getting those
youtube quota limit errors (too_many_recent_calls). Unable to
understand why we are getting that error only when we host on Google
App engine . Are there any problems with Google App engine from the
last few days?

Any help would be greatly appreciated

Thanks,
-Kishore
-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.




[appengine-java] Re: How to use picasa upload api on Google App Engine

2009-11-10 Thread Kishore Jaladi

Hi Ikai,
Thanks for the response.
The protocol section describes format of the post body. But the Java
guide does not explain how to send binary image data other than teh
approach of creating MediaFileSource with the java.io.File as refered
at 
http://code.google.com/apis/picasaweb/docs/2.0/developers_guide_java.html#UploadPhotos.
And Java GAE does not support "new File("/home/liz/puppies.jpg")"
snippet of this sample. Can you please give me a sample or refer to a
doc that explains how the other approach (sending binary image data)
works in jsp/java world?

Thanks in advance
- Kishore

On Nov 10, 5:58 pm, "Ikai L (Google)"  wrote:
> You may want to look here:
>
> http://code.google.com/apis/picasaweb/docs/2.0/developers_guide_proto...
>
> If you are looking to upload photos that a user has uploaded, you will not
> be able to save the image in the file system. You'll have to buffer the data
> in memory and post to Picasa's API.
>
> On Sun, Nov 8, 2009 at 10:43 PM, Kishore Jaladi 
> wrote:
>
>
>
> > Hi,
> > Is there a way to upload files on local file system to picasa on
> > google app Engine? The google app engine cannot read local files. I
> > tried to use GAEVFS (Virtual File system), but I could not figure out
> > how to create MediaFileSource from FileObject. Any help please?
>
> > - kjaladi
>
> --
> Ikai Lan
> Developer Programs Engineer, Google App Engine
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-java@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~--~~~~--~~--~--~---



[appengine-java] How to use picasa upload api on Google App Engine

2009-11-09 Thread Kishore Jaladi

Hi,
Is there a way to upload files on local file system to picasa on
google app Engine? The google app engine cannot read local files. I
tried to use GAEVFS (Virtual File system), but I could not figure out
how to create MediaFileSource from FileObject. Any help please?

- kjaladi

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-java@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~--~~~~--~~--~--~---