简体   繁体   English

Google 智能家居操作将设备“[test] ACTION 已链接”添加到立即“出现问题”。 再试一次'

[英]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:以下是配置此工具以测试端点的方法:

  1. Open the Settings gear, change OAuth endpoints to Custom打开设置齿轮,将OAuth 端点更改为自定义
  2. Enter your authorization and token URLs from the Actions console从操作控制台输入您的授权和令牌 URL
  3. Enter your client ID and secret from the Actions console从操作控制台输入您的客户端 ID 和密码

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.

相关问题 谷歌智能家居行动 OAuth 2.0 服务器 - Google Smart Home Action OAuth 2.0 Server 使用我们开发的应用程序而不是智能家居设备与 Google Home 和 Google Assistant 进行通信 - Communicating with Google Home and Google Assistant with the Application We Developed Instead of the Smart Home Device linkedin oauth 授权失败并显示“Bummer,出了点问题” - linkedin oauth authorization fails with "Bummer, something went wrong" 使用 OAuth2(有效)创建了智能家居活动(谷歌主页),但无法在“主页”应用中链接它 - Created smart home activity (google home) with OAuth2 (which works) but can't Link it in the "Home" app 使用iOS / Swift验证w OAuth2和Eventbrite时出现“糟糕,出了点问题”错误 - “Oops, something went wrong” error when authenticating w OAuth2 and Eventbrite using iOS / swift Google家庭行动帐户链接失败 - Google home action account link failed 谷歌家庭应用程序上的操作不调用令牌交换端点 - actions on google home app not calling token exchange endpoint 谷歌智能设备 API Oauth2 刷新令牌过期 - Google Smart Device API Oauth2 Refresh Token Expires 帐户与Google上的操作相关联 - Account linking with actions on google 验证码解决方案不正确。 请再试一次 - The captcha solution was not correct. Please try again
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM