[英]Google Smart Home Actions add device '[test] ACTION is linked' to immediate 'Something went wrong. Try again'
I am creating a new Google smart home Action, and step one is to create an OAuth 2.0 server for account linking.我正在创建一个新的 Google 智能家居 Action,第一步是创建一个 OAuth 2.0 服务器用于帐户链接。
https://developers.google.com/actions/identity/oauth2?oauth=code&hl=ko&refresh=1 https://developers.google.com/actions/identity/oauth2?oauth=code&hl=ko&refresh=1
I have follow all of the steps on the Google documentation under the Auth code UP UNTIL 'start the authentication flow'.我已经按照 Google 文档中的 Auth 代码 UP UNTIL 'start the authentication flow' 下的所有步骤进行操作。 I do not know if this is required or where this code would go, but that is a different topic.
我不知道这是否是必需的,或者这段代码会去哪里,但这是一个不同的话题。
However, there is an error with my Authentication page.但是,我的身份验证页面有错误。 Linking is done with my iPhone's Google Home app, currently which has the generated [test] prefix.
链接是通过我的 iPhone 的 Google Home 应用程序完成的,目前它具有生成的 [test] 前缀。 When I click the [test] MYAPP, the service runs through till the redirection correctly.
当我单击 [test] MYAPP 时,该服务会一直运行,直到正确重定向。 The webpage closes and informs me 'MYAPP is linked.
网页关闭并通知我“MYAPP 已链接。 As soon as this notification disapears, a new notification 'Something went wrong.
此通知一消失,就会出现一条新通知“出现问题”。 Try again' appears.
再试一次”出现。
Clicking the [test] MYAPP to link any time afterwards leads to a blank webpage that says 'Account now linked', but the MYAPP does not move to the 'linked' portion of the Google Home app.之后随时单击 [test] MYAPP 链接会导致显示“帐户现已链接”的空白网页,但 MYAPP 不会移动到 Google Home 应用程序的“链接”部分。
https://developers.google.com/actions/smarthome/develop/error-logging https://developers.google.com/actions/smarthome/develop/error-logging
After checking the logs, I was initially getting 'OPEN_AUTH_FAILURE' for days.检查日志后,我最初几天都收到“OPEN_AUTH_FAILURE”。 Now, I am getting 'BACKEND_FAILURE'.
现在,我收到“BACKEND_FAILURE”。
What is the next step?你下一步怎么做? How can I debug this?
我该如何调试?
You can use the Google OAuth Playground to verify that your account linking implementation is working properly.您可以使用Google OAuth Playground来验证您的帐户关联实施是否正常工作。 Here is how you can configure this tool to test your endpoint:
以下是配置此工具以测试端点的方法:
You won't be authorizing any Google APIs, so for Step 1 you can just enter something like "devices" and click Authorize APIs .您不会授权任何 Google API,因此对于第 1 步,您只需输入“设备”之类的内容,然后点击授权 API 。 You can follow through with the flow in Step 2 to verify that the authorization and token exchange work properly.
您可以按照步骤 2 中的流程来验证授权和令牌交换是否正常工作。 The tool will report if any errors occur in the flow.
该工具将报告流程中是否发生任何错误。
If you can successfully verify your account linking implementation, but you are still seeing errors returned in the Cloud console, please file an issue .如果您可以成功验证您的帐户关联实施,但您仍然看到 Cloud 控制台中返回错误,请提交问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.