此问题与问题here中描述的内容非常相似或相同。
它指的是我们在链接智能家居Google智能助理应用后发现的错误。 OAuth链接成功,但在将SYNC请求发送到我们的端点之前发生错误。应用程序中的错误消息如下:
Couldn't update the setting. Check your connection.
我们已经使用新创建的Google帐户重现了这一点,但在使用我们在开发过程中使用的旧帐户时却不会发生这种情况,我们不清楚原因。到目前为止,这个新帐户在每个链接尝试期间都会继续遇到错误。
此外,我们尝试使用同一帐户链接到其他智能家居提供商的应用,并发生了同样的错误。这使我们相信该问题可能与我们的具体实施无关。
我们的一些早期用户遇到了与此类似的问题,因此我们很有兴趣了解这一点。
修改 如下面的评论所示,我们还检查了StackDriver日志,其中包括以下内容:
{
insertId: "1eialu1g1wsicsh"
logName: "projects/***********/logs/actions.googleapis.com%2Factions"
receiveTimestamp: "2018-03-23T07:11:42.864362172Z"
resource: {
labels: {
action_id: "SMART_HOME_SYNC"
project_id: "********"
version_id: ""
}
type: "assistant_action"
}
severity: "ERROR"
textPayload: "SYNC: Request ID 14632813443482912913 failed with code: OPEN_AUTH_FAILURE"
timestamp: "2018-03-23T07:11:42.843302777Z"
}
这明确指出OAuth问题,但根据我们的日志,OAuth链接成功。有趣的是,我们搜索了错误'OPEN_AUTH_FAILURE'并偶然发现了thread。其中,用户'tr0zanwow'建议用户登录Google Chrome的帐户应与Google智能助理应用中的帐户相匹配。果然,我们测试设备上的Chrome应用使用了不同的Google帐户;更改后匹配错误停止发生。但是,更改Chrome帐户(再次使它们不同)不会导致问题再次发生。我们不清楚其含义究竟是什么。
ORIGINAL 根据类似问题的要求,在顶部链接,我们在此问题的最后包含了logcat日志。在用户将其登录详细信息提交到我们的OAuth服务之后,他们会直接从一个点开始,之后流程返回到Home Control页面。
我们已经包含了这么多信息,因为害怕留下任何可能对知识渊博的读者有用的东西。
最值得注意的一行可能是:
W/ASPrefControlBase: #onFailure
W/S3NetworkUtils: [Upload] response code: 500
W/SearchService: Abort, client detached.
我们的Google智能助理应用已经过认证并且已上线,因此这不是测试版。但是,我们尚未发布任何公告,我们希望在此之前发现此错误的原因。
非常感谢任何帮助。
记录A - 错误
03-22 10:46:11.477 28274-28274/? W/BrowserControlActivity: Transition animation scale is not available
03-22 10:46:11.487 28274-28274/? D/ViewRootImpl@749b1e7[BrowserControlActivity]: Relayout returned: oldFrame=[0,0][1440,2560] newFrame=[0,0][1440,2560] result=0x7 surface={isValid=true 513947270656} surfaceGenerationChanged=true
03-22 10:46:11.487 28274-28274/? D/ViewRootImpl@749b1e7[BrowserControlActivity]: mHardwareRenderer.initialize() mSurface={isValid=true 513947270656} hwInitialized=true
03-22 10:46:11.500 28274-28473/? D/mali_winsys: EGLint new_window_surface(egl_winsys_display*, void*, EGLSurface, EGLConfig, egl_winsys_surface**, egl_color_buffer_format*, EGLBoolean) returns 0x3000, [1440x2560]-format:1
03-22 10:46:11.509 28274-28274/? D/ViewRootImpl@e3863da[AssistantHandoffActivity]: Relayout returned: oldFrame=[720,1322][720,1322] newFrame=[720,1322][720,1322] result=0x3 surface={isValid=true 514602466816} surfaceGenerationChanged=true
03-22 10:46:11.509 28274-28274/? D/ViewRootImpl@e3863da[AssistantHandoffActivity]: mHardwareRenderer.initialize() mSurface={isValid=true 514602466816} hwInitialized=true
03-22 10:46:11.511 28274-28473/? D/mali_winsys: EGLint new_window_surface(egl_winsys_display*, void*, EGLSurface, EGLConfig, egl_winsys_surface**, egl_color_buffer_format*, EGLBoolean) returns 0x3000, [1x1]-format:1
03-22 10:46:11.525 28274-28274/? D/ViewRootImpl@f1f4180[AssistantSettingsActivityInternal]: Relayout returned: oldFrame=[0,0][1440,2560] newFrame=[0,0][1440,2560] result=0x3 surface={isValid=true 515082470400} surfaceGenerationChanged=true
03-22 10:46:11.525 28274-28274/? D/ViewRootImpl@f1f4180[AssistantSettingsActivityInternal]: mHardwareRenderer.initialize() mSurface={isValid=true 515082470400} hwInitialized=true
03-22 10:46:11.595 28274-28274/? D/ViewRootImpl@749b1e7[BrowserControlActivity]: MSG_WINDOW_FOCUS_CHANGED 1
03-22 10:46:11.595 28274-28473/? D/mali_winsys: EGLint new_window_surface(egl_winsys_display*, void*, EGLSurface, EGLConfig, egl_winsys_surface**, egl_color_buffer_format*, EGLBoolean) returns 0x3000, [1440x2560]-format:1
03-22 10:46:11.595 28274-28274/? D/ViewRootImpl@749b1e7[BrowserControlActivity]: mHardwareRenderer.initializeIfNeeded()#2 mSurface={isValid=true 513947270656}
03-22 10:46:11.597 28274-28274/? V/InputMethodManager: Starting input: tba=android.view.inputmethod.EditorInfo@4801c30 nm : com.google.android.googlequicksearchbox ic=null
03-22 10:46:11.597 28274-28274/? I/InputMethodManager: [IMM] startInputInner - mService.startInputOrWindowGainedFocus
03-22 10:46:11.603 28274-28274/? D/InputTransport: Input channel constructed: fd=175
03-22 10:46:12.537 28274-28274/? D/ViewRootImpl@749b1e7[BrowserControlActivity]: mHardwareRenderer.destroy()#4
03-22 10:46:12.537 28274-28274/? D/ViewRootImpl@749b1e7[BrowserControlActivity]: dispatchDetachedFromWindow
03-22 10:46:12.545 28274-28274/? D/InputTransport: Input channel destroyed: fd=185
03-22 10:46:12.561 28274-28274/? D/ViewRootImpl@e3863da[AssistantHandoffActivity]: Relayout returned: oldFrame=[720,1322][720,1322] newFrame=[720,1322][720,1322] result=0x1 surface={isValid=true 514602466816} surfaceGenerationChanged=false
03-22 10:46:12.561 28274-28274/? D/ViewRootImpl@e3863da[AssistantHandoffActivity]: MSG_WINDOW_FOCUS_CHANGED 1
03-22 10:46:12.561 28274-28274/? D/ViewRootImpl@e3863da[AssistantHandoffActivity]: mHardwareRenderer.initializeIfNeeded()#2 mSurface={isValid=true 514602466816}
03-22 10:46:12.562 28274-28274/? V/InputMethodManager: Starting input: tba=android.view.inputmethod.EditorInfo@24ece65 nm : com.google.android.googlequicksearchbox ic=null
03-22 10:46:12.562 28274-28274/? I/InputMethodManager: [IMM] startInputInner - mService.startInputOrWindowGainedFocus
03-22 10:46:12.564 28274-28274/? D/InputTransport: Input channel constructed: fd=173
03-22 10:46:12.564 28274-28274/? D/InputTransport: Input channel destroyed: fd=175
03-22 10:46:12.564 28274-28274/? E/ViewRootImpl: sendUserActionEvent() mView == null
03-22 10:46:12.626 28274-28274/? D/TextView: setTypeface with style : 0
03-22 10:46:12.640 28274-28274/? D/TextView: setTypeface with style : 0
03-22 10:46:12.646 28274-28274/? D/TextView: setTypeface with style : 0
03-22 10:46:12.648 28274-28274/? D/TextView: setTypeface with style : 0
03-22 10:46:12.650 28274-28274/? D/TextView: setTypeface with style : 0
03-22 10:46:12.654 28274-28274/? D/ViewRootImpl@592b4f9[AssistantSettingsActivityInternal]: ThreadedRenderer.create() translucent=true
03-22 10:46:12.658 28274-28274/? D/InputTransport: Input channel constructed: fd=178
03-22 10:46:12.659 28274-28274/? D/ViewRootImpl@592b4f9[AssistantSettingsActivityInternal]: setView = DecorView@4311c3e[AssistantSettingsActivityInternal] touchMode=true
03-22 10:46:12.666 28274-28274/? D/ViewRootImpl@f1f4180[AssistantSettingsActivityInternal]: MSG_WINDOW_FOCUS_CHANGED 1
03-22 10:46:12.666 28274-28274/? D/ViewRootImpl@f1f4180[AssistantSettingsActivityInternal]: mHardwareRenderer.initializeIfNeeded()#2 mSurface={isValid=true 515082470400}
03-22 10:46:12.667 28274-28274/? V/InputMethodManager: Starting input: tba=android.view.inputmethod.EditorInfo@239f7ec nm : com.google.android.googlequicksearchbox ic=null
03-22 10:46:12.667 28274-28274/? I/InputMethodManager: [IMM] startInputInner - mService.startInputOrWindowGainedFocus
03-22 10:46:12.668 28274-28274/? D/InputTransport: Input channel constructed: fd=179
03-22 10:46:12.668 28274-28274/? D/InputTransport: Input channel destroyed: fd=173
03-22 10:46:12.669 28274-28274/? D/ViewRootImpl@e3863da[AssistantHandoffActivity]: MSG_WINDOW_FOCUS_CHANGED 0
03-22 10:46:12.672 28274-28274/? D/ViewRootImpl@592b4f9[AssistantSettingsActivityInternal]: dispatchAttachedToWindow
03-22 10:46:12.712 28274-28274/? D/ViewRootImpl@592b4f9[AssistantSettingsActivityInternal]: Relayout returned: oldFrame=[0,0][0,0] newFrame=[37,1119][1403,1525] result=0x27 surface={isValid=true 513947270656} surfaceGenerationChanged=true
03-22 10:46:12.713 28274-28274/? D/ViewRootImpl@592b4f9[AssistantSettingsActivityInternal]: mHardwareRenderer.initialize() mSurface={isValid=true 513947270656} hwInitialized=true
03-22 10:46:12.716 28274-28473/? D/mali_winsys: EGLint new_window_surface(egl_winsys_display*, void*, EGLSurface, EGLConfig, egl_winsys_surface**, egl_color_buffer_format*, EGLBoolean) returns 0x3000, [1590x630]-format:1
03-22 10:46:12.717 28274-28274/? D/ViewRootImpl@e3863da[AssistantHandoffActivity]: mHardwareRenderer.destroy()#1
03-22 10:46:12.729 28274-28274/? D/ViewRootImpl@e3863da[AssistantHandoffActivity]: Relayout returned: oldFrame=[720,1322][720,1322] newFrame=[720,1322][720,1322] result=0x5 surface={isValid=false 0} surfaceGenerationChanged=true
03-22 10:46:12.729 28274-28274/? D/ViewRootImpl@592b4f9[AssistantSettingsActivityInternal]: MSG_WINDOW_FOCUS_CHANGED 1
03-22 10:46:12.730 28274-28274/? D/ViewRootImpl@592b4f9[AssistantSettingsActivityInternal]: mHardwareRenderer.initializeIfNeeded()#2 mSurface={isValid=true 513947270656}
03-22 10:46:12.751 28274-28274/? D/ViewRootImpl@592b4f9[AssistantSettingsActivityInternal]: MSG_RESIZED_REPORT: ci=Rect(0, 0 - 0, 0) vi=Rect(0, 0 - 0, 0) or=1
03-22 10:46:12.786 28274-28274/? D/ViewRootImpl@f1f4180[AssistantSettingsActivityInternal]: MSG_WINDOW_FOCUS_CHANGED 0
03-22 10:46:12.792 28274-7980/? W/CronetNetworkRqstWrppr: Upload request without a content type.
03-22 10:46:13.065 28274-28274/? W/SearchService: Abort, client detached.
03-22 10:46:13.065 28274-28274/? W/SearchService: Abort, client detached.
03-22 10:46:13.523 28274-28274/? D/TextView: setTypeface with style : 0
03-22 10:46:13.531 28274-28274/? W/ASPrefControlBase: #onFailure
com.google.android.apps.gsa.shared.speech.b.o: errorCode: -83903, engine: 2
at com.google.android.apps.gsa.s3.t.b(SourceFile:7)
at com.google.android.apps.gsa.s3.o.a(SourceFile:9)
at com.google.android.apps.gsa.s3.m.als(SourceFile:70)
at com.google.android.apps.gsa.s3.l.run(SourceFile:19)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:428)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:428)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at com.google.android.apps.gsa.shared.util.concurrent.b.g.run(Unknown Source)
at com.google.android.apps.gsa.shared.util.concurrent.b.au.run(SourceFile:4)
at com.google.android.apps.gsa.shared.util.concurrent.b.au.run(SourceFile:4)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
at java.lang.Thread.run(Thread.java:762)
at com.google.android.apps.gsa.shared.util.concurrent.b.i.run(SourceFile:6)
03-22 10:46:13.541 28274-28274/? D/ViewRootImpl@592b4f9[AssistantSettingsActivityInternal]: mHardwareRenderer.destroy()#4
03-22 10:46:13.541 28274-28274/? D/ViewRootImpl@592b4f9[AssistantSettingsActivityInternal]: dispatchDetachedFromWindow
03-22 10:46:13.574 28274-28274/? D/InputTransport: Input channel destroyed: fd=178
03-22 10:46:13.578 28274-28274/? D/ViewRootImpl@f1f4180[AssistantSettingsActivityInternal]: MSG_WINDOW_FOCUS_CHANGED 1
03-22 10:46:13.579 28274-28274/? D/ViewRootImpl@f1f4180[AssistantSettingsActivityInternal]: mHardwareRenderer.initializeIfNeeded()#2 mSurface={isValid=true 515082470400}
03-22 10:46:13.589 28274-28274/? E/ViewRootImpl: sendUserActionEvent() mView == null
03-22 10:46:13.591 28274-8715/? W/S3NetworkUtils: [Upload] response code: 500
03-22 10:46:13.602 28274-28274/? W/SearchService: Abort, client detached.
03-22 10:46:13.621 28274-28274/? D/ViewRootImpl@e3863da[AssistantHandoffActivity]: mHardwareRenderer.destroy()#4
03-22 10:46:13.621 28274-28274/? D/ViewRootImpl@e3863da[AssistantHandoffActivity]: dispatchDetachedFromWindow
03-22 10:46:13.642 28274-28274/? D/InputTransport: Input channel destroyed: fd=156
答案 0 :(得分:0)
我尝试将SmartHome Codelab添加到我的Home Control应用中时遇到了相同的错误。
我在应用程序上使用Brave作为默认浏览器,但将其切换回Chrome可以解决此问题。