google-app-engine

Cannot connect to Google Cloud SQL using SSL + Golang from Google App Engine

旧街凉风 提交于 2020-01-11 10:16:00
问题 Google says you can connect to Google Cloud SQL using Golang and the go-sql-driver like so: import "database/sql" import _ "github.com/go-sql-driver/mysql" db, err := sql.Open("mysql", "user@cloudsql(project-id:instance-name)/dbname") ref: https://cloud.google.com/appengine/docs/go/cloud-sql/reference ... However, this (for me) generates a x509 certificate error: x509: certificate is valid for projectName:instanceName, not projectName I cannot figure out how to solve this. Adding the instance

Add index to entity property that is already live in the datastore on Google App Engine

江枫思渺然 提交于 2020-01-11 10:15:46
问题 I know you are supposed to add @Index to all properties in your entity model to add an index, but what if you forget and there are already live writes of your entity in the datastore? Is there a way to manually add an index to all those properties via the developers console or some other way? I found that if you add @Index to your entity and re-deploy the project, all new writes of that entity will have that property indexed. However, all existing writes of that property will not be indexed

Add index to entity property that is already live in the datastore on Google App Engine

旧巷老猫 提交于 2020-01-11 10:13:26
问题 I know you are supposed to add @Index to all properties in your entity model to add an index, but what if you forget and there are already live writes of your entity in the datastore? Is there a way to manually add an index to all those properties via the developers console or some other way? I found that if you add @Index to your entity and re-deploy the project, all new writes of that entity will have that property indexed. However, all existing writes of that property will not be indexed

How do I return data from a deferred task in Google App Engine

别等时光非礼了梦想. 提交于 2020-01-11 09:12:34
问题 Original Question I have a working version of my web application that I am trying to upgrade at the moment, and I'm running into the issue of having a task which takes too long to complete in during a single HTTP request. The application takes a JSON list from a JavaScript front end by an HTTP Post operation, and returns a sorted/sliced version of that list. As the input list gets longer, the sorting operation takes a much longer time to perform (obviously), so on suitably long input lists, I

Connect from Appengine to a Kubernetes service from Google Containers

删除回忆录丶 提交于 2020-01-11 08:49:06
问题 I have a project with Appengine part and Google Containers cluster. Appengine app needs to make http calls to a Service deployed to Google Containers. I know that I can assign an external IP to the Service, hardcode it into my Appengine app, and then make UrlFetch requests agains such IP. That works. But I don't want to use public network for such communication. I wondering maybe I can also get access like it's done inside Kubernetes cluster between Pods? by specifying a service host name,

Now that the conversion API is discontinued is there a way to convert PDF files to an image in appengine / python?

邮差的信 提交于 2020-01-11 08:41:33
问题 Now that the Google Conversion API has been discontinued is there a way to convert PDF files to images in GAE , specially python? Looks like someone has already requested this from Google but there hasn't been any action. A couple years ago the consensus was it wasn't possible. Anything new out there that could help me out? 回答1: If you read the issue report you linked to, there are two suggestions there: Use ImageMagick to do it locally. Use the service described in the comments that is

GWT, Google App Engine, TimerTask or Thread in ServiceImpl throw exception

百般思念 提交于 2020-01-11 08:33:31
问题 I am using GWT and Google App Engine. I have array of records and I want to update them every 30 mins. In the ServiceImpl I have the fallowing code : new Timer().schedule(new TimerTask(){ @Override public void run() { try { Thread.sleep(30000); } catch (InterruptedException e) { e.printStackTrace(); } result = updateFeeds(); } }, 30000,Long.MAX_VALUE); When I run the application and when I get : com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract java.util.List

Error installing Google AppEngine plugin in Eclipse Juno (4.2)

混江龙づ霸主 提交于 2020-01-11 08:24:47
问题 When I try to install the eclipse plugin for GAE I get an error: Cannot complete the install because one or more required items could not be found. Software being installed: Google App Engine Java SDK 1.6.4 1.6.4.v201203300216r37 (com.google.appengine.eclipse.sdkbundle.e37.feature.feature.group 1.6.4.v201203300216r37) I'm using the http://dl.google.com/eclipse/plugin/3.7 update URL, which is the latest I could find. Has anyone solved this issue? Thanks in advance! 回答1: Use this : http://dl

google app engine service unavailable

北城余情 提交于 2020-01-11 08:09:07
问题 I'm was following http://googcloudlabs.appspot.com/ tutorial to create new Google App Engine project. It throws me an error as per below when I try to run the from my local host, but when I deployed it working fine. (http://mynewcloudcom.appspot.com/). Please help. HTTP ERROR: 503 Problem accessing /. Reason: SERVICE_UNAVAILABLE Powered by Jetty:// Eclipse Console Mar 05, 2012 10:42:46 AM com.google.apphosting.utils.jetty.JettyLogger info INFO: Logging to JettyLogger(null) via com.google

PHP support for Google App Engine? [closed]

一世执手 提交于 2020-01-11 07:39:12
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 10 years ago . Does anyone have any idea as to when the Google App engine will support PHP? 回答1: When hell freezes? =) Nah. But I think only Google knows what's next on Google App Engine. Google and maybe a select few key developers around the projects that are candidates. 回答2: I believe that's slated for after Google