Questions tagged [google-app-engine-go]

59 questions
1
vote
3 answers

Are Cloud Endpoints with Go Google App Engine Standard possible?

I have implemented a simple API in Go on Google App Engine Standard using just: func init() { http.HandleFunc("/api/v1/resource",submitResource) } Nothing special. However I want to port this code to using Cloud Endpoints instead in order to…
0
votes
0 answers

gcloud deploy: No buildable Go source files

After upgrading google-cloud-sdk from 422.0.0 to 423.0.0, my Go standard environment project suddenly no longer builds (I've replaced references to my checkout directory with below, I get the same error no matter where it is checked…
nafmo
  • 448
  • 4
  • 19
0
votes
1 answer

How do I select which files to deploy to a Standard Environment AppEngine in Google Cloud?

How do I limit the files deployed to the AppEngine instances? I am updating a Google AppEngine Standard Environment deployment from 1.11 to the 1.12+ environment. To be able to compile, I need to create a go.mod in the top-level directory of the…
0
votes
0 answers

Occasional `ErrServerError` returned when calling "memcache.Set" against shared Memcache on App Engine Standard

I'm occasionally seeing this error after calling .Set() following .Get() returning something as being not cached, perhaps after being purged. The description... "memcache: server error" isn't particularly helpful or clear. But, the error seems to be…
0
votes
1 answer

How to run App Engine Standard apps locally (for development/testing) in 2021 without `dev_appserver.py`?

There have been a lot of changes to App Engine Standard. Is it still possible to have a local instance of the app runnable with something similar to dev_appserver.py and to use the new cloud.google.com/... APIs? Previously, you could emulate the…
0
votes
1 answer

Replacement for Go App Engine "google.golang.org/appengine/log" package, with log levels?

I noticed this package is deprecated, per the documentation here: https://cloud.google.com/appengine/docs/standard/go/go-differences What is the correct way to log on Go 1.12+ without losing log levels by simply printing?…
0
votes
1 answer

Can't set up AppEngine's Memcache in Go

I've been trying to use AppEngine's Memcache. Note that I'm referring to the one included in AppEngine; I'm trying to avoid MemoryStore because of its costs: having the free alternative in AppEngine, I prefer to try to use that one instead. Thing…
89f3a1c
  • 1,430
  • 1
  • 14
  • 24
0
votes
1 answer

Testing app that depends on environment variables locally

Google's App Engine provides a list of predefined environment variables and additional environment variables may be defined in app.yaml. Meanwhile, the instructions for Testing and Deploying your Application just say to use go run to test the app…
Sam Herrmann
  • 6,293
  • 4
  • 31
  • 50
0
votes
1 answer

GCloud AppEngine Task execution returns 403

using push queues and flexible environment on Google AppEngine I get 403 (Forbidden) error when a task (to be executed on backend service), created with default service, is executed. The task is successfully pushed to queue, confirmed locally, but…
0
votes
1 answer

Problem with deploying Go app to Google App Engine

I developed my first Go app and decided to deploy it to Google Cloud (App Engine). It was running perfectly fine locally but I run into a few issues during the deployment (I'm using Cloud SDK). I eventually got to the point where I was able to…
0
votes
2 answers

Stackdriver Error reporting reporting not working with go appengine app

I'm trying to write my error log to stackdriver error reporting from a golang appengine app Inside a goroutine i do the following fmt.Fprintf(os.Stderr, "%s %s %s", name, kind, err.Error()) I'm seeing the error in stackdriver logging but i don't…
0
votes
1 answer

Problems with app.yaml api_version migrating Google AppEngine from Go 1.9 to Go 1.11

At $DAYJOB we are using a Go 1.9-based AppEngine application. Now that Google is deprecating version 1.9, I am trying to move to 1.11, using the migration guide. It says that I should set runtime: go111 and remove the api_version: go1.9 value from…
nafmo
  • 448
  • 4
  • 19
0
votes
1 answer

How to use main package in different folder than app.yaml for appengine Go?

I am trying to upload a Go app to appegnine Go 1.12 runtime. My main pkg is under a cmd folder as shows https://cloud.google.com/appengine/docs/standard/go112/config/appref#runtime_and_app_elements But if I try any of the approaches outlines in the…
codefx
  • 9,872
  • 16
  • 53
  • 81
0
votes
1 answer

How to implement google datastore propertyloadsaver with arrays of structs

How do you implement Load() and Save() for googles datastore when you have an array of structs? It is clearly possible, but how? Firstly, when you allow the datastore itself to serialise a Person with a list of Phone objects, you can use reflection…
Jay
  • 19,649
  • 38
  • 121
  • 184
0
votes
3 answers

How to effectively delete Google App engine Search API index

I have found some similary questions here ,but no solid answer. How to delete or reset a search index in Appengine how to delete search index in GAE Search API How to delete a search index on the App Engine using Go? How to delete a search Index…
howie
  • 2,587
  • 3
  • 27
  • 43