It seems you're manually performing HTTP requests. If you look up "302 found" online, you'll find it's an HTTP response code sent to indicate that the next URL to request with the same data should be the one specified in the "Location" header of the response. Is that logic possible to include in your code? Can your HTTP library automatically follow 3xx redirects?
On Wednesday, December 30, 2015 at 7:55:33 AM UTC-5, Manisha Awasthi wrote: > > Hi, > > I have some code which was using clientLogin to access datastore with > remote api. But , that method is going to be deprecated in January and > suggests to use oauth2 credential with help of remoteapi. > > Rempte Api has a method useServiceAccountCredential(ServiceAccount, P12). > When I am using this method, I get below error: > > Error: > com.google.appengine.repackaged.com.google.api.client.http. > HttpResponseException: 302 Found > > > I am unable to resolve this error. Can someone please help me? > Below is my maven dependency to access remote api > > <dependency> > <groupId>com.google.appengine</groupId> > <artifactId>appengine-remote-api</artifactId> > <version>1.9.30</version> > </dependency> > > > > -- 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/274e7aac-2c3d-445e-9ab8-92850854b982%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
