Sample app for Google app for apps,

I installed the android sample for Google app from this tutorial

when I enter something into EditText and click the submit button, nothing happens for a while and produces the following error

06-10 18:47:49.109: I/CloudBackend(28741): error: 06-10 18:47:49.109: I/CloudBackend(28741): com.google.api.client.googleapis.json.GoogleJsonResponseException: 503 Service Unavailable 06-10 18:47:49.109: I/CloudBackend(28741): { 06-10 18:47:49.109: I/CloudBackend(28741): "code": 503, 06-10 18:47:49.109: I/CloudBackend(28741): "errors": [ 06-10 18:47:49.109: I/CloudBackend(28741): { 06-10 18:47:49.109: I/CloudBackend(28741): "domain": "global", 06-10 18:47:49.109: I/CloudBackend(28741): "message": "", 06-10 18:47:49.109: I/CloudBackend(28741): "reason": "backendError" 06-10 18:47:49.109: I/CloudBackend(28741): } 06-10 18:47:49.109: I/CloudBackend(28741): ], 06-10 18:47:49.109: I/CloudBackend(28741): "message": "" 06-10 18:47:49.109: I/CloudBackend(28741): } 06-10 18:47:49.109: I/CloudBackend(28741): at com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest.newExceptionOnError(AbstractGoogleJsonClientRequest.java:111) 06-10 18:47:49.109: I/CloudBackend(28741): at com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest.newExceptionOnError(AbstractGoogleJsonClientRequest.java:38) 06-10 18:47:49.109: I/CloudBackend(28741): at com.google.api.client.googleapis.services.AbstractGoogleClientRequest$1.interceptResponse(AbstractGoogleClientRequest.java:314) 06-10 18:47:49.109: I/CloudBackend(28741): at com.google.api.client.http.HttpRequest.execute(HttpRequest.java:1060) 06-10 18:47:49.109: I/CloudBackend(28741): at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:412) 06-10 18:47:49.109: I/CloudBackend(28741): at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:345) 06-10 18:47:49.109: I/CloudBackend(28741): at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.execute(AbstractGoogleClientRequest.java:463) 06-10 18:47:49.109: I/CloudBackend(28741): at com.google.cloud.backend.android.CloudBackend.insert(CloudBackend.java:111) 06-10 18:47:49.109: I/CloudBackend(28741): at com.google.cloud.backend.android.CloudBackendAsync.access$0(CloudBackendAsync.java:1) 06-10 18:47:49.109: I/CloudBackend(28741): at com.google.cloud.backend.android.CloudBackendAsync$1.callBackend(CloudBackendAsync.java:87) 06-10 18:47:49.109: I/CloudBackend(28741): at com.google.cloud.backend.android.CloudBackendAsync$1.callBackend(CloudBackendAsync.java:1) 06-10 18:47:49.109: I/CloudBackend(28741): at com.google.cloud.backend.android.CloudBackendAsync$BackendCaller.run(CloudBackendAsync.java:428) 

It's a shame that the message "!"! PS: I'm new to the Google engine.

+6
source share
4 answers

I found an answer for this.

There seems to be an error in the application: every time your application generates a new version, redistributing it or so, it forgets to make the last default deployment in the application console. Follow these steps to make it the default:

  • go to the appengine console
  • Open project
  • On the left side, open Main β†’ Versions
  • Make the latest default version by clicking on the radio button next to it.

What i hope

0
source

This could probably be a data conversion error. The server expects values ​​in one format, and the client sends another format (a problem with parsing at the Google endpoint). I highly recommend you use the google api explorer tool to make sure your server interface works without problems. Then you should proceed to detect any problems with the client side.

+3
source

I found out that if you manually created the datastore-indexes.xml file (assuming it is bad) in WEB-INF, you will get this error.

I deleted mine and the problem was fixed ....

0
source

Here is the perfect solution.

Log in to the application system. Click Instances on the left side. In the lower right corner you will see the option "Shutdown"

Click Shut Down. (Shutdown is not just shutdown, but restart).

The instance starts after 10-12 seconds. Note. During these 10-12 seconds, the application engine is unavailable. So, if your application is live, your cloud will not work during these 10-12 seconds.

Refresh the page after 10 seconds and make sure that you see the β€œShut Down” option. This means that your instance is rebooted.

Now try again and it will work. Send me an email at jscript12@gmail.com if you have any questions.

-2
source

Source: https://habr.com/ru/post/946965/


All Articles