2017-08-03 65 views
0

我按照這個教程https://apiai-aws-heroku-nodejs-bots.blogspot.co.uk/2017/07/steps-for-apiai-and-google-account.html但是當我去抓取調試網址恰好是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,但沒有解釋。Google Action API.ai賬號鏈接調試網址返回500

我也試過從隱身窗口。它會詢問我的電子郵件和密碼,但會返回相同的錯誤。

我已經使用隱式格蘭特類型,我沒有添加快速帳戶鏈接啓用請激起我知道,如果這是不正確的?

當我嘗試捲曲網址我得到的消息{「地位」:{「代碼」:401,「錯誤類型」:「未經授權」,「errorDetails」:「驗證參數缺少」}}

UPDATE - 現在,當我嘗試在模擬器上進行基本的過敏語言操作時,我甚至不會收到調試信息,但消息「對不起,此操作在模擬中不可用」:皺眉:

請問您可以幫忙嗎? 感謝 莫雷納

回答

0

我已經設法制定出什麼我需要做的按照這個答案How to authenticate user with just a Google account on Actions on Google? 在我的情況 - 這樣的日曆API已啓用配置項目(雲控制檯),而的OAuth2客戶端配置正確。 我也從隱式授權類型切換到授權碼。 我的應用程序幾乎可以正常工作,現在我有其他問題,但是在某些時候,訪問令牌正在通過請求。