2017-12-10 20 views
0

요청은 projectname.appspot.com/_ah/health 다음과 같은 오류 로컬 테스트Google appengine/ah/health "방법이 존재하지 않습니다."

{ 
"code": 5, 
"message": "Method does not exist.", 
"details": [ 
    { 
    "@type": "type.googleapis.com/google.rpc.DebugInfo", 
    "stackEntries": [], 
    "detail": "service_control" 
    } 
] 
} 

을 반환하고 그것을 잘 작동합니다.

runtime: go 
env: flex 
api_version: go1 

app.go 주요 기능 :

func main() { 

    r := mux.NewRouter() 

    r.HandleFunc("/", handler) 

    r.HandleFunc("/_ah/health", healthCheckHandler) 

    http.Handle("/", r) 

    port := 8080 
    if portStr := os.Getenv("PORT"); portStr != "" { 
     port, _ = strconv.Atoi(portStr) 
    } 
    log.Fatal(http.ListenAndServe(fmt.Sprintf(":%d", port), nil)) 
} 

어떤 생각이 무슨 일을 무슨 일이야

는 애플리케이션 제목을 축약?

답변

0

것은이 API를

paths: 
    "/_ah/health": 
    get: 
     operationId: "OkStatus" 
     security: [] 
     responses: 
     200: 
      description: "Ok message" 

그것은 ESP 프록시를 통해 할 수 아니에요을 열 추가