云端点-请求失败的HTTP状态500 [英] Cloud endpoints - request failed http status 500

本文介绍了云端点-请求失败的HTTP状态500的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

成功部署后,我尝试致电[xxxxx.appspot.com/_ah/api/*],但收到错误的请求错误:500,它一直工作到3周前,现在我变得疯狂起来,尝试找出原因. 我的自定义API在Google Apis Explorer上也不可见(我也清除了cookie!).

After successful deploy I'm trying to call [xxxxx.appspot.com/_ah/api/*] and I get bad request error:500, It was working till 3 weeks ago, now I'm getting crazy trying to find causes. My custom APIs are not visible on Google Apis Explorer neither (I cleaned cookies too!).

这似乎是一个实际问题,存在一些相关问题,但任何解决方案都对我有效.

This seems an actual issue, there are questions related but any solution works for me.

以下是日志:

{
 httpRequest: {
  status:  500   
 }
 insertId:  "5a6781240009209ba6384b12"  
 labels: {
  clone_id:  ""   
 }
 logName:  "projects/millis-v1/logs/appengine.googleapis.com%2Frequest_log"  
 operation: {
  first:  true   
  id:  "5a67812400ff0660347c4c558f0001657e6d696c6c69732d76310001323031383031323374313933333336000100"   
  last:  true   
  producer:  "appengine.googleapis.com/request_id"   
 }
 protoPayload: {
  @type:  "type.googleapis.com/google.appengine.logging.v1.RequestLog"   
  appEngineRelease:  "1.9.54"   
  appId:  "e~millis-v1"   
  endTime:  "2018-01-23T18:38:28.420341Z"   
  finished:  true   
  first:  true   
  host:  "millis-v1.appspot.com"   
  httpVersion:  "HTTP/1.1"   
  ip:  "2a01:c50e:2259:4300:486b:77c:fa4a:a270"   
  latency:  "0.002497s"   
  line: [
   0: {
    logMessage:  "The request failed because the instance could not start successfully"     
    severity:  "ERROR"     
    time:  "2018-01-23T18:38:28.420254Z"     
   }
  ]
  method:  "GET"   
  pendingTime:  "0.002370834s"   
  requestId:  "5a67812400ff0660347c4c558f0001657e6d696c6c69732d76310001323031383031323374313933333336000100"   
  resource:  "/_ah/api/discovery/v1/apis/adminappendpoint/v1/rest?fields=kind%2Cname%2Cversion%2CrootUrl%2CservicePath%2Cresources%2Cparameters%2Cmethods%2CbatchPath%2Cid&pp=0"   
  startTime:  "2018-01-23T18:38:28.417844Z"   
  status:  500   
  traceId:  "7c897e18c63dc7d114cf785474b30545"   
  urlMapEntry:  "unused"   
  userAgent:  "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36"   
  versionId:  "20180123t193336"   
 }
 receiveTimestamp:  "2018-01-23T18:38:28.600329615Z"  
 resource: {
  labels: {
   module_id:  "default"    
   project_id:  "millis-v1"    
   version_id:  "20180123t193336"    
   zone:  "eu5"    
  }
  type:  "gae_app"   
 }
 severity:  "ERROR"  
 timestamp:  "2018-01-23T18:38:28.417844Z"  
}

那里有英雄吗?谢谢!!

Any hero there? thank you!.

推荐答案

该线索位于该日志消息中:请求失败,因为该实例无法成功启动".

The clue is in that log message: "The request failed because the instance could not start successfully".

通常,这意味着您的应用在启动过程中会引发异常,甚至无法处理请求.正如saiyr所建议的那样,您需要查看应用程序日志以获取解释.

Usually this means your app is throwing an exception during the startup of the app, before it can even handle a request. As saiyr suggests, you'll need to look to the application logs for an explanation.

这篇关于云端点-请求失败的HTTP状态500的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆