-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Labels
api: coreapi: datastoreIssues related to the Datastore API.Issues related to the Datastore API.running on app enginetype: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Description
The decision of whether to use UrlFetchTransport instead of NetHttpTransport is currently based on the presence of the com.google.appengine.application.id system property. This can result in UrlFetchTranport being used in the App Engine Flex environment (at least in compat mode).
One possible approach is:
if (System.getProperty("com.google.appengine.application.id") != null
// Rule out App Engine Flex compat mode.
&& System.getenv("GAE_VM") == null
// Rule out App Engine Flex.
&& System.getenv("GCLOUD_PROJECT" ) == null) {
// use UrlFetchTransport
}
Metadata
Metadata
Assignees
Labels
api: coreapi: datastoreIssues related to the Datastore API.Issues related to the Datastore API.running on app enginetype: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.