Querying The Datastore In Golang
Oops! We Couldn’t Retrieve Your List Of Kinds.
Occasionally you may see the error Oops! We couldn’t retrieve your list of kinds from the datastore viewer screen of the App Engine admin console:
Generally this is a transient error: it essentially means that the App Engine admin console is currently too busy to show a view of your datastore’s contents. Wait a few minutes and refresh the page, your datastore’s information should appear.
Seeing this error can also mean that the datastore is empty; for example, if it’s a just-created application.
Extracting The Subdomain In Java
A short code example today: how to extract the subdomain in Java. The req object represents HttpServletRequest.
String subdomain = req.getRequestURL().toString();
subdomain = subdomain.substring(subdomain.indexOf("/") + 2, subdomain.indexOf("."));
For example, if the user entered http://subdomain.example.com , this code would store the word subdomain in the subdomain variable.
Displaying Time In Java
Deleting An Entity In Golang
Integrating App Engine Into A Google Cloud Project
If you currently have an App Engine application, you might be interested in connecting it to other Google Cloud services such as Cloud Storage and Compute Engine. But before you do, you need to integrate your App Engine application into a Google Cloud project.
Go to https://cloud.google.com/console and click on a project (in this picture, Fact is an App Engine application):
If you see this screen (no options for Cloud SQL, Cloud Storage, etc) then you haven’t integrated your App Engine app into a Google Cloud project:
Here’s how to integrate your App Engine application. First, go to Application Settings in App Engine’s administration console:
Go to the bottom of the page. You’ll see a Cloud Integration section:
Press the button marked Add Project. The section will change to this screen:
Wait a few minutes, and the integration should complete:
Now your project console should show options for Cloud Storage, Cloud SQL, and other Google Cloud services:
Retrieving An Entity By ID In Go
app.yaml In PHP
A Failed Cron
Occasionally, an application’s cron request may fail. If so, you’ll see the below screen in the Cron tab of the application dashboard:
Cron requests can fail for many reasons, so it’s important to check the application logs when you see this failure message.