I get the answer.
The  API about discover got the error ,because the result is too large to 
memcache.
 ValueError: Values may not be more than 1000000 bytes in length; received 
1014315 bytes.

So  I modify the code in main.py file
'''
@app.route('/vm/start')
def start_vm():
    credentials = 
AppAssertionCredentials(scope='https://www.googleapis.com/auth/compute')
    http = credentials.authorize(httplib2.Http(memcache))
    api_start_uri = 
'https://www.googleapis.com/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/start'
    api_start_uri = api_start_uri.format(project=PROJECT, 
zone=INSTANCE_ZONE, instance=INSTANCE_NAME)
    response, result = http.request(
        uri=api_start_uri,
        method='POST'
        )
return result, 200, {'Content-Type': 'application/json'}
''''

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/4978fb19-ea50-4b62-acc3-85cb4ff19bf4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to