Android Mobile Backend Starter fail with 404 not found… some times

百般思念 提交于 2019-11-28 09:22:05

I do not completely understand what is going on, but I found a way to get rid of the 404 errors on the client side, which are caused by the App Engine side not responding. The errors reported in the app engine logs are talking about audience and client ids for the app. Those are the values you set when you configure authentication for "Secured by Client Ids".

I found that if I put in some placeholder string values in there, saved, and then went back to "Open (for development use only)" and saved again, the app engine would no longer have config errors and would response to the client Android app.

At the moment I am only to the place where entries are made in the Guestbook data. But this definitely got me started again. I am hoping that if I set up authentication completely that the problem will not come back.

I was getting the same error, the error went away after redeploying the backend app on cloud console.

I found that after redeploy a new version is created, instead of reseting the default one. When selecting this new version as 'default' everything worked as expected.

Select instance as default at (Main / Version):

https://appengine.google.com/adminlogs?&app_id=<project_id>

Check at:

https://<project_id>.appspot.com/_ah/api/explorer

Here is the perfect fix.

Log on to the app engine. Click on Instances on the left hand side. At the right bottom , you will see an option as "Shutdown"

Click on Shutdown. (Shutdown is not just shutdown. Its a restart).

The instance gets started in 10-12 seconds. Note : During these 10-12 seconds , the app engine is not accessible. So, if your app is live , your cloud will not work for these 10-12 seconds.

Refresh the page after 10 seconds and make sure you see the Shutdown option . This means your instance is restarted.

Now , retry and it will work. Send me email to jscript12@gmail.com if you still have questions

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!