我在app引擎标准上使用google-endpoint V2,并使用firebase身份验证。
在本地部署时,服务器启动并运行正常。当发出查询以访问其中一个endpointV2时,我得到一个不一致的行为:
https://servicecontrol.googleapis.com/v1/services/my-project-id.appspot.com:check
而陷入困境。如何解决这个问题的任何想法都将受到赞赏!
devserver中的日志,查询失败:
[INFO] GCLOUD: failed because of java.net.SocketTimeoutException: Timeout while fetching: https://servicecontrol.googleapis.com/v1/services/my-project-id.appspot.com:check
[INFO] GCLOUD: Aug 02, 2017 12:27:06 AM com.google.api.control.Client check
[INFO] GCLOUD: SEVERE: direct send of a check request service_name: "my-project-id.appspot.com"
[INFO] GCLOUD: operation {
[INFO] GCLOUD: operation_id: "7453fb02-56e3-48ec-856c-e25d09ccc792"
[INFO] GCLOUD: operation_name: "1.recipes_groceries_appspot_com.ApiadminPop"
[INFO] GCLOUD: consumer_id: "project:my-project-id"
[INFO] GCLOUD: start_time {
[INFO] GCLOUD: seconds: 1501658786
[INFO] GCLOUD: nanos: 76000000
[INFO] GCLOUD: }
[INFO] GCLOUD: end_time {
[INFO] GCLOUD: seconds: 1501658786
[INFO] GCLOUD: nanos: 76000000
[INFO] GCLOUD: }
[INFO] GCLOUD: labels {
[INFO] GCLOUD: key: "servicecontrol.googleapis.com/referer"
[INFO] GCLOUD: value: "http://localhost:4200/_ah/api/static/proxy.html?jsh=m%3B%2F_%2Fscs%2Fapps-static%2F_%2Fjs%2Fk%3Doz.gapi.en.4KxLsUEUJCA.O%2Fm%3D__features__%2Fam%3DAQ%2Frt%3Dj%2Fd%3D1%2Frs%3DAGLTcCOh765ksalVtUgJb_uys4PUTu6HZA"
[INFO] GCLOUD: }
[INFO] GCLOUD: labels {
[INFO] GCLOUD: key: "servicecontrol.googleapis.com/caller_ip"
[INFO] GCLOUD: value: "127.0.0.1"
[INFO] GCLOUD: }
[INFO] GCLOUD: labels {
[INFO] GCLOUD: key: "servicecontrol.googleapis.com/user_agent"
[INFO] GCLOUD: value: "ESP"
[INFO] GCLOUD: }
[INFO] GCLOUD: labels {
[INFO] GCLOUD: key: "servicecontrol.googleapis.com/service_agent"
[INFO] GCLOUD: value: "EF_JAVA/1.0.4"
[INFO] GCLOUD: }
[INFO] GCLOUD: }
[INFO] GCLOUD: failed because of java.net.SocketTimeoutException: Timeout while fetching: https://servicecontrol.googleapis.com/v1/services/my-project-id.appspot.com:check
[INFO] GCLOUD: Aug 02, 2017 12:27:06 AM com.google.api.control.ControlFilter doFilter
[INFO] GCLOUD: WARNING: the check did not succeed; the response null
[INFO] GCLOUD: Aug 02, 2017 12:27:06 AM com.google.api.server.spi.auth.GoogleAppEngineAuthenticator authenticate
[INFO] GCLOUD: INFO: appEngineUser = example@example.com