google-app-engine

how fix new error that's stopping app engine deployment? (after Google pushed a Cloud Tools SDK update today)

大兔子大兔子 提交于 2020-01-03 16:48:06
问题 I am using IntelliJ and I am deploying to Google App Engine Standard Environment. I have a new error after Google pushed a Cloud Tools SDK update to my development machine. I can no longer deploy current or previously deployed working versions to Google App Engine using IntelliJ. **error**: package com.google.appengine.api.users does not exist import warning: [options] bootstrap class path not set in conjunction with -source 1.7 C:\Users\Dave\AppData\Local\Temp\1500787298445-0\org\apache\jsp

GAE Python : dev_appserver.py: error: too few arguments

删除回忆录丶 提交于 2020-01-03 15:59:15
问题 I am trying to run the basic helloworld code described here https://cloud.google.com/appengine/docs/python/. However, whenever I try the dev_appserver.py helloworld/ command, I get a usage error for the dev_appserver.py command. I have installed Python 2.7 and also have Python 2.7 Anaconda installed on my system. Could the Anaconda Python be the cause of the issue? The file structure of my code is as follows: Project helloworld app.yaml helloworld.py README.md I have tried executing the dev

GAE: An error occurred for the API request datastore_v3.Next()

旧时模样 提交于 2020-01-03 15:58:29
问题 at a simple query with one filter like this: PersistenceManager pm = PMF.getFactory().getPersistenceManager(); Key userKey = KeyFactory.createKey(User.class.getSimpleName(), Long.parseLong(userId)); Query query = pm.newQuery(Car.class); query.setFilter("owner == ownerParam"); query.declareParameters(Key.class.getName() + " ownerParam"); List<Car> cars = (List<Car>) query.execute(userKey); we get following error (when over approx. 300 entries) Caused by: com.google.apphosting.api.ApiProxy

how do I return all memcached values in Google App Engine?

白昼怎懂夜的黑 提交于 2020-01-03 15:37:09
问题 I want to use all the data in my python app engine memcache. I do not know the keys in advance. How do I go about getting all data? 回答1: The only read functions available on memcache are: get(key, namespace=None) get_multi(keys, key_prefix='', namespace=None) As you can see, to get data from memcache you must provide one or more keys. 回答2: I am using a 'well known key' called "config" where I store a list of all other keys and use that to enumerate the rest of the items. 回答3: as in comments

how do I return all memcached values in Google App Engine?

点点圈 提交于 2020-01-03 15:37:06
问题 I want to use all the data in my python app engine memcache. I do not know the keys in advance. How do I go about getting all data? 回答1: The only read functions available on memcache are: get(key, namespace=None) get_multi(keys, key_prefix='', namespace=None) As you can see, to get data from memcache you must provide one or more keys. 回答2: I am using a 'well known key' called "config" where I store a list of all other keys and use that to enumerate the rest of the items. 回答3: as in comments

webapp2.Route with optional leading part

。_饼干妹妹 提交于 2020-01-03 15:36:01
问题 I am learning the webapp2 framework with its powerful Route mechanism. My application is supposed to accept URIs like these: /poll/abc-123 /poll/abc-123/ /poll/abc-123/vote/ # post new vote /poll/abc-123/vote/456 # view/update a vote Polls may optionally be organized into categories, so all the above should work also like this: /mycategory/poll/abc-123 /mycategory/poll/abc-123/ /mycategory/poll/abc-123/vote/ /mycategory/poll/abc-123/vote/456 My incorrect configuration: app = webapp2

webapp2.Route with optional leading part

一世执手 提交于 2020-01-03 15:35:33
问题 I am learning the webapp2 framework with its powerful Route mechanism. My application is supposed to accept URIs like these: /poll/abc-123 /poll/abc-123/ /poll/abc-123/vote/ # post new vote /poll/abc-123/vote/456 # view/update a vote Polls may optionally be organized into categories, so all the above should work also like this: /mycategory/poll/abc-123 /mycategory/poll/abc-123/ /mycategory/poll/abc-123/vote/ /mycategory/poll/abc-123/vote/456 My incorrect configuration: app = webapp2

Eclipse new Web Application Project, can't find my GAE SDK

久未见 提交于 2020-01-03 15:32:13
问题 I've installed the Google Plugin for Eclipse 3.4 and it seems to work fine. But when I start a new Web Application Project, it wants me to configure the Google App Engine SDK. I click on Add App Engine SDK, but it doesn't recognize my (valid) GAE SDK. It comes back with "Failed to initialize App Engine SDK at %path", no matter what path I give it. 回答1: Are you trying to use the Java or Python SDKs, and are you sure you downloaded the right one? If Python, remember that the Google Eclipse

GAE/GWT: Error loading modules: Unable to find 'com/androidstartup/serialization/KPadProject.gwt.xml'

让人想犯罪 __ 提交于 2020-01-03 13:37:35
问题 I am using Eclipse 3.5 with GAE SDK 1.3.7 and GWT SDK 2.1.0 and Restlet 2.0.3. When I run my app, the console log shows: Loading modules com.androidstartup.serialization.KPadProject [ERROR] Unable to find 'com/androidstartup/serialization/KPadProject.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source? [ERROR] shell failed in doSlowStartup method The main module /KPadProject.gwt.xml is in the root package. I checked out the configuration

Using low level api for datastore in google app engine ? is it bad?

非 Y 不嫁゛ 提交于 2020-01-03 13:17:08
问题 There is little documentation on how to use the low level api for datastore and quite a lot on JPA and JDO and how it translates to it. My question is: is there any advantage in coding against the JPA or JDO specs instead of accessing directly the low level api for datastore ? From an initial look, it seems simple and straight forward but I am not sure if there are good reasons why not to do it. Thanks Cx 回答1: There is nothing wrong with using the low level API directly. If you want something