Hey Rajesh, As mentioned in previous threads, this forum should not be used for troubleshooting posts like this. You should either post an issue like this to the Public Issue Tracker if you are confident it's a platform issue (you have read the documentation and the system is not behaving as it should), or to Stack Overflow if it seems more like a possible confusion on your end.
Nonetheless, I'll help you with some basic advice on this problem: It seems that you have changed the authentication part of the code as a result of 404 - this is unnecessary as it's *403 *which is the error response for auth issues. 404 means "Not Found", so it seems that you haven't deployed the remote API to the server you are trying to connect to. See this doc <https://cloud.google.com/appengine/docs/java/tools/remoteapi>, for example, for the java way to configure remote API on the server (you need a special remote api handler on /remote_api). Cheers, Nick Cloud Platform Community Support On Tuesday, July 19, 2016 at 7:30:20 AM UTC-4, Rajesh Gupta wrote: > > I tried the following also - using useApplicationDefaultCredentail. > RemoteApiOptions options = > new RemoteApiOptions().server(serverConfig.domainName, > serverConfig.portNumber). > useApplicationDefaultCredential(); > > installer.install() still throws error. > > > I am running a local server and trying to access remote datastore. > > > On Tue, Jul 19, 2016 at 1:24 PM, Rajesh Gupta < > [email protected]> wrote: > >> I am using >> RemoteApiInstaller installer = new RemoteApiInstaller(); >> RemoteApiOptions options = >> new RemoteApiOptions().server(domainName, portNumber) >> .credentials(userName, passwd); >> installer.install(options); >> >> It is throwing the follow exception >> com.google.appengine.tools.remoteapi.LoginException: Bad authentication >> response: 404 >> >> -- >> Regards, >> Rajesh >> *www.VeersoftSolutions.com <http://www.VeersoftSolutions.com>* >> *www.GainERP.com <https://www.gainerp.com>* >> *Accounting/Inventory/Orders on Google Cloud Platform and Mobile* >> >> > > > -- > Regards, > Rajesh > *www.VeersoftSolutions.com <http://www.VeersoftSolutions.com>* > *www.GainERP.com <https://www.gainerp.com>* > *Accounting/Inventory/Orders on Google Cloud Platform and Mobile* > > -- 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/b74faf87-0f62-45b2-8ce5-e206b0bd816a%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
