Google App Engine ModuleHostname: not an App Engine context
问题 I am trying to discover other deployed services on the App Engine. Something like this article suggests. This is how my code looks like: import ( "fmt" "net/http" "google.golang.org/appengine" ) func ServiceHostname(serviceName string, r *http.Request) (string, error) { ctx := appengine.NewContext(r) hostname, err := appengine.ModuleHostname(ctx, serviceName, "", "") if err != nil { return "", fmt.Errorf("unable to find service %s: %v", serviceName, err) } return hostname, nil } I am calling