VanessaGaRe
VanessaGaRe

Reputation: 21

mobile backend starter error: 404 not found

I am trying the example of Google Mobile Backend Starter and everything works fine until I run the guestbook application. When I write and send a message I get a GoogleJsonResponseException 404 Not Found

I followed the instructions in this tutorial https://developers.google.com/cloud/samples/mbs/getting_started

Any idea? Seem not find the backend? When I try connect to https://[PROJECT_ID].appspot.com/_ah/api/ I get the same Not Found error

Thanks in advance.

Upvotes: 2

Views: 1907

Answers (3)

kakoma
kakoma

Reputation: 1203

The root cause is that the version being used in your code is different from the app engine default version.

The app engine default version is deployed to: http://[appversion]-your-product-id.appspot.com The code you are running though has specified the deployment version as 1 which means when deployed, your app will check here: http://1-dot-your-project-id.appspot.com hence the 404 (because in essence, this URL doesn't exit. I use one here for illustration purposes).

To resolve this, go to https://appengine.google.com/deployment?app_id=s~your-project-id and make the version you've uploaded the default version

More here: App Engine Set-up hiccups

Upvotes: 0

breadbin
breadbin

Reputation: 584

I encountered a similar error and did as Romin suggested in one of the comments on Brad Abrams' answer: I simply re-deployed the mobile backend starter in the Google Cloud Console. No idea why, but it fixed the issue for me.

Upvotes: 1

Brad Abrams
Brad Abrams

Reputation: 691

Thanks for trying out the Mobile Backend Stater...

In the android project, have you replaced the PROJECT_ID with the the project ID from the cloud console project you created? Looks like that might be the issue..

Upvotes: 0

Related Questions