I am trying to do access my data from my local machine by following this guide:
https://cloud.google.com/appengine/docs/java/tools/remoteapi I have changed the web.xml, installed the cloud SDK and ran "gcloud init" and selected the app. Here is my test code: package androidlost_remote; import java.io.IOException; import com.google.appengine.api.datastore.DatastoreService; import com.google.appengine.api.datastore.DatastoreServiceFactory; import com.google.appengine.api.datastore.Entity; import com.google.appengine.tools.remoteapi.RemoteApiInstaller; import com.google.appengine.tools.remoteapi.RemoteApiOptions; public class RemoteTest { public static void main(String[] args) throws IOException { RemoteApiOptions options = new RemoteApiOptions().server( "airtellost.appspot.com", 443).useApplicationDefaultCredential(); RemoteApiInstaller installer = new RemoteApiInstaller(); installer.install(options); try { DatastoreService ds = DatastoreServiceFactory. getDatastoreService(); System.out.println("Key of new entity is " + ds.put(new Entity("Hello Remote API!"))); } finally { installer.uninstall(); } } } But all I get is an exception: Exception in thread "main" com.google.appengine.repackaged.com.google.api. client.http.HttpResponseException: 302 Found at com.google.appengine.repackaged.com.google.api.client.http. HttpRequest.execute(HttpRequest.java:1070) at com.google.appengine.tools.remoteapi.OAuthClient.get(OAuthClient.java :64) at com.google.appengine.tools.remoteapi.RemoteApiInstaller. getAppIdFromServer(RemoteApiInstaller.java:413) at com.google.appengine.tools.remoteapi.RemoteApiInstaller.loginImpl( RemoteApiInstaller.java:376) at com.google.appengine.tools.remoteapi.RemoteApiInstaller.login( RemoteApiInstaller.java:337) at com.google.appengine.tools.remoteapi.RemoteApiInstaller.install( RemoteApiInstaller.java:173) at androidlost_remote.RemoteTest.main(RemoteTest.java:16) I have no security-constraints in my web.xml. Any suggestions on how to avoid this exception? -- 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 https://groups.google.com/group/google-appengine. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/25500fc9-a99d-4299-95b6-4a8188265cf1%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.