Let me be a bit clearer about the problem. I get a "com.google.gdata.util.ServiceForbiddenException: Forbidden" exception when I try to update/delete my items. I get no such problems when inserting.
Daniel On Jan 19, 11:42 am, danigoldman <[email protected]> wrote: > Thanks Tom for helping. > > I'm not affiliated with phishing-waring-site.com, that's what I get in > the error message from [CODE] ServiceException e e.getResponseBody() [/ > CODE] > > The code is being run from inside by webapplication using my > GoogleBase username and password (I use ClientLogin to > programmatically login to my GoogleBase account). > > I'm able to upload items to GoogleBase just fine, but not update or > delete them. > > Daniel > > On Jan 18, 5:29 pm, Tom Wilson <[email protected]> wrote: > > > > > Where are you running this code from ? > > > phishing-warning-site.com - Is this your website ? > > > Tom Wilson > > Freelance Google Base Developer and Consultantwww.tomthedeveloper.com > > > Google Base Tools -http://dev.tomthedeveloper.com/googlebase > > Featured Project > > :http://google-code-featured.blogspot.com/2008/02/google-base-competit... > > > On Jan 15, 6:46 pm, danigoldman <[email protected]> wrote: > > > > When i try to update any of my GoogleBase items, I get an 'Access > > > Denied' error. > > > > Here's is a snippet of the relevant Java code: > > > > //Start the service > > > GoogleBaseService service = new GoogleBaseService("Ravant.com"); > > > service.setUserCredentials("[email protected]", "password"); > > > > //Create a GoogleBaseEntry object > > > GoogleBaseEntry entry = toEntry(...); > > > > //Insert the entry > > > GoogleBaseEntry insertedListing = service.insert > > > (FeedURLFactory.getDefault().getItemsFeedURL(), entry); > > > > //Get the id > > > URL entryId = new URL(insertedListing.getId()); > > > > //Now delete the entry (THIS DOESN'T WORK) > > > service.delete(entryId); > > > > When I run the above code, I get the the following error: > > > "<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" > > > "http://www.w3.org/TR/html4/loose.dtd"> > > > <HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; > > > charset=iso-8859-1"> > > > <TITLE>ERROR: The requested URL could not be retrieved</TITLE> > > > <STYLE type="text/css"><!--BODY{background-color:#ffffff;font- > > > family:verdana,sans-serif}PRE{font-family:sans-serif}--></STYLE> > > > </HEAD><BODY> > > > <H1>ERROR</H1> > > > <H2>The requested URL could not be retrieved</H2> > > > <HR noshade size="1px"> > > > <P> > > > While trying to retrieve the URL: > > > <A HREF="http://www.google.com/base/feeds/items/ > > > 5277481622409472667">http://www.google.com/base/feeds/items/ > > > 5277481622409472667</A> > > > <P> > > > The following error was encountered: > > > <UL> > > > <LI> > > > <STRONG> > > > Access Denied. > > > </STRONG> > > > <P> > > > Access control configuration prevents your request from > > > being allowed at this time. Please contact your service provider if > > > you feel this is incorrect. > > > </UL> > > > <P>Your cache administrator is <A HREF="mailto:root">root</A>. > > > > phishing-warning-site.com > > > <BR clear="all"> > > > <HR noshade size="1px"> > > > <ADDRESS> > > > Generated Thu, 15 Jan 2009 17:57:35 GMT by phishing-warning- > > > site.com .... > > > </ADDRESS> > > > </BODY></HTML>" > > > > Any ideas? I've been trying all different possibilities over the past > > > 2 days. > > > > Thanks, > > > Daniel --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Base Data API" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Base-data-API?hl=en -~----------~----~----~----~------~----~------~--~---
