上周我收到一封来自谷歌的邮件,说我的项目有很高的错误率。
我检查了stackdriver日志,发现了很多相同的错误“open_auth_failure”
019-01-24 05:50:24.009 GMT
requestId 11208018970435955658 failed with code: OPEN_AUTH_FAILURE
å
¨é¨å±å¼ | å
¨é¨æ¶èµ· {
insertId: "1e1u2yf5abv81"
logName: "projects/ankuoo-50c50/logs/actions.googleapis.com%2Factions"
receiveTimestamp: "2019-01-24T05:50:24.045620573Z"
resource: {
labels: {
action_id: "SMART_HOME_QUERY"
project_id: "ankuoo-50c50"
version_id: ""
}
type: "assistant_action"
}
severity: "ERROR"
textPayload: "requestId 11208018970435955658 failed with code: OPEN_AUTH_FAILURE"
timestamp: "2019-01-24T05:50:24.009362763Z"
}
2019-01-24 05:50:24.009 GMT
requestId 11208018970435955658: Agent responded empty JSON.
å
¨é¨å±å¼ | å
¨é¨æ¶èµ· {
insertId: "1e1u2yf5abv82"
logName: "projects/ankuoo-50c50/logs/actions.googleapis.com%2Factions"
receiveTimestamp: "2019-01-24T05:50:24.045620573Z"
resource: {
labels: {
action_id: "SMART_HOME_QUERY"
project_id: "ankuoo-50c50"
version_id: ""
}
type: "assistant_action"
}
severity: "ERROR"
textPayload: "requestId 11208018970435955658: Agent responded empty JSON."
timestamp: "2019-01-24T05:50:24.009367337Z"
}
起初我认为它在我的实现中有一个bug,但是在tomcat日志文件甚至nginx访问日志中都没有找到任何请求记录。
54.198.206.193 [24/Jan/2019:05:50:22 +0000] "POST /alexa/devices HTTP/1.1" 200 134 "-" "python-requests/2.7.0 CPython/2.7.12 Linux/4.14.88-72.76.amzn1.x86_64"
72.21.217.66 [24/Jan/2019:05:50:23 +0000] "POST /oauth2/access_token HTTP/1.1" 200 179 "-" "Apache-HttpClient/4.5.x (Java/1.8.0_192)"
54.198.206.193 [24/Jan/2019:05:50:23 +0000] "POST /alexa/devices HTTP/1.1" 200 337 "-" "python-requests/2.7.0 CPython/2.7.12 Linux/4.14.88-72.76.amzn1.x86_64"
54.198.206.193 [24/Jan/2019:05:50:24 +0000] "POST /alexa/power HTTP/1.1" 200 27 "-" "python-requests/2.7.0 CPython/2.7.12 Linux/4.14.88-72.76.amzn1.x86_64"
72.21.217.83 [24/Jan/2019:05:50:27 +0000] "POST /oauth2/access_token HTTP/1.1" 200 179 "-" "Apache-HttpClient/4.5.x (Java/1.8.0_192)"
以“alexa”开头的路径是amazon alexa的api,所以我的服务似乎没有收到来自google的请求。我不知道如何解决这个问题。