成功部署后,我试图拨打[xxxxx.appspot.com/_ah/api/*]并收到错误的请求错误:500,它工作到3周前,现在我正在使用变得疯狂试图找到原因。 我的自定义API在Google Apis Explorer上也不可见(我也清理了Cookie!)。
这似乎是一个实际问题,有相关问题,但任何解决方案都适用于我。
以下是日志:
{
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"
}
那里有英雄吗?谢谢!。
答案 0 :(得分:0)
线索在该日志消息中:"请求失败,因为实例无法成功启动"。
通常这意味着您的应用在应用启动期间抛出异常,甚至可以处理请求。正如赛义尔建议的那样,您需要查看应用程序日志以获得解释。