Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

unable to test google assistant action on web simulator (Error Cloud function deployment failed. Dismiss)

Hey Respected Community!

I started learning to create google actions.

so i created very basic google action. which invokes by 'hey google talk to Doctor Strange' and after adding 1 more transition which displays suggestion. I saved it and trying to test it. but continously getting error.

cloud function deployment failed.

enter image description here

i am continously trying to test it but getting error.

Can anyone help me what i am missing? thanks in advance

like image 584
Aaqib Mehrban Avatar asked Jan 03 '21 19:01

Aaqib Mehrban


People also ask

Why does cloud deployment fail?

Cloud Functions deployment can fail if the entry point to your code, that is, the exported function name, is not specified correctly. Your source code must contain an entry point function that has been correctly specified in your deployment, either via Cloud console or Cloud SDK.

How do you deploy cloud functions?

In the Source code field, select ZIP from Cloud Storage. In the Cloud Storage location field, click Browse to select a ZIP file from Cloud Storage. Your function source files must be located at the root of the ZIP file - see Source directory structure. Click Deploy.

What are cloud functions?

Cloud Functions removes the work of managing servers, configuring software, updating frameworks, and patching operating systems. The software and infrastructure are fully managed by Google so that you just add code. Furthermore, provisioning of resources happens automatically in response to events.


Video Answer


1 Answers

As you surmise in your comments, using the Inline Editor for the webhook fulfillment requires you to have billing enabled for the cloud project it is attached to. (This is because it uses Cloud Functions for Firebase under the hood, and this requires billing to be enabled, even if you limit yourself to the free tier.)

You don't need to use the Inline Editor, or even Google Cloud Functions, for your webhook. All you need is a public HTTPS server that can accept and respond with JSON.

like image 142
Prisoner Avatar answered Sep 28 '22 03:09

Prisoner