【问题标题】:Google Action API.ai Account linking debugging URL returning 500Google Action API.ai 帐户链接调试 URL 返回 500
【发布时间】:2017-08-03 14:40:31
【问题描述】:

我已经按照本教程 https://apiai-aws-heroku-nodejs-bots.blogspot.co.uk/2017/07/steps-for-apiai-and-google-account.html 进行操作,但是当我通过调试 URL 抓取恰好是 https://assistant.google.com/services/auth/handoffs/auth/start?provider=allergology-5fa9c_dev&scopes=https://www.googleapis.com/auth/userinfo.email+https://www.googleapis.com/auth/userinfo.profile+https://www.googleapis.com/auth/admin.directory.resource.calendar&return_url=https://www.google.com/ 并将其粘贴到新窗口中时,我收到错误 500,但没有任何解释。

我也尝试过使用隐身窗口。它确实要求我提供电子邮件和密码,但随后返回相同的错误。

我使用了隐式授权类型,但我没有启用添加快速帐户链接,如果不对请告诉我?

当我尝试使用 CURL URL 时,我收到消息 {“status”:{“code”:401,“errorType”:“unauthorized”,“errorDetails”:“Authentication parameters missing”}}

更新 - 现在当我在模拟器上尝试基本的 Talk to Allergology 操作时,我什至不再获得调试信息,但消息“抱歉,此操作在模拟中不可用”:皱眉:

你能帮忙吗? 谢谢 莫雷纳

【问题讨论】:

    标签: google-oauth actions-on-google api-ai


    【解决方案1】:

    按照这个答案How to authenticate user with just a Google account on Actions on Google?,我已经设法弄清楚我需要做什么 在我的情况下 - 配置您的项目(在云控制台中),以便启用日历 API 并正确配置 OAuth2 客户端。 我还从隐式授权类型切换到授权代码。 我的应用程序几乎可以运行,我现在遇到了其他问题,但在某些时候访问令牌通过请求。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2022-12-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-12-29
      • 1970-01-01
      • 1970-01-01
      • 2014-08-20
      相关资源
      最近更新 更多