![](/img/trans.png)
[英]flutter http post request showing status code 500 although its works in postman
[英]Cloud endpoints - request failed http status 500
成功部署后,我嘗試致電[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"
}
那里有英雄嗎? 謝謝!。
提示信息就是該日志消息:“因為實例無法成功啟動,所以請求失敗”。
通常,這意味着您的應用在啟動過程中會引發異常,甚至無法處理請求。 正如saiyr所建議的那樣,您需要查看應用程序日志以獲得解釋。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.