简体   繁体   中英

I'm getting backend failure error in google smart home while accessing fulfillment URL provided in dialogflow webhook url

I'm getting backend failure error in google smart home while accessing fulfillment URL provided in dialogflow webhook url

{
   textPayload: "SYNC: Request ID 1570058940383905256 failed with code: BACKEND_FAILURE"
   insertId: "1trptjqgc2uhm9d"
   resource: {
   type: "assistant_action"
   labels: {
   action_id: "SMART_HOME_SYNC"
   project_id: "gnextsmarthome"
   version_id: ""
  }
}

Action console Account linking details:

   Authorization URL: https://accounts.google.com/o/oauth2/auth
   Token URL :https://oauth2.googleapis.com/token

through voice assistant able to access fulfillment url successfully,but failed to access through google home while linking app. also prebuilt smart home action option not visible in Action menu

I referred to this example to build smart home app:

https://github.com/shivasiddharth/google-actions-smarthome

In that example,they had used fake access token and auth url.

In order to use google signin concept, I have added google account token url: https://accounts.google.com/o/oauth2/auth and then end up with error 'Google account error'.(fig 1)

enter image description here

and also account linking type option is missing.but in this case able to see smart home prebuilt action(fig 2)

enter image description here

But later i noticed account linking type option become visible after enabling with dialogflow api.then 'google account error' is gone.

enter image description here

in this case i have mentioned fulfillment url in dialogflow webhook address to trigger smart home backend server function.

enter image description here

enter image description here

enter image description here

You are trying to use an endpoint which can't be used and hence you will have to use your own endpoints as also mentioned in the comments on this answer. You can try out the Connect smart home devices to the Google Assistant codelab to see if the error is due to a configuration, or the server you are running behind your endpoint.

If you are still running into issues when implementing your own fulfillment endpoint, you can take a look at your error logs to see what the detailed debug string comes out as. You can learn more from the Troubleshooting Guide .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM