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

前端 未结 4 792
灰色年华
灰色年华 2020-12-09 21:41

Last afternoon I created a project and deployed the mobile backend started. I edited the client code and sucessfully did some data insertion.

Some time (hours) after

相关标签:
4条回答
  • 2020-12-09 21:54

    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

    0 讨论(0)
  • 2020-12-09 21:59

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

    0 讨论(0)
  • 2020-12-09 22:07

    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".

    Mobile Backend Settings page

    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.

    0 讨论(0)
  • 2020-12-09 22:14

    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
    
    0 讨论(0)
提交回复
热议问题