Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Cannot read property 'metadata' of undefined #19

Open
aliya16 opened this issue Apr 10, 2019 · 5 comments
Open

TypeError: Cannot read property 'metadata' of undefined #19

aliya16 opened this issue Apr 10, 2019 · 5 comments

Comments

@aliya16
Copy link

aliya16 commented Apr 10, 2019

No description provided.

@NatiDaddy
Copy link

Hello?
This place is pretty dead but I can try to help be of assistance since I'm running into issues as well.
Please let me know what you are having troubles with (specifically step number, input, and results)? I may need your help!

@aliya16
Copy link
Author

aliya16 commented Apr 12, 2019

Haii, Thankyou for replying. In step number 22 after creating a function. It got verified. But some minutes later it reports the Error written above, cannot read property meta data of undefined.

@aliya16
Copy link
Author

aliya16 commented Apr 12, 2019

Please do tell how you went through step 23 for deployment.

@NatiDaddy
Copy link

Step 22 or step 23?
Does your function have a green check? Or did it go to a red x with that error?
Step 22: I took the 2 files (index and package) and copied them after editing in names. I then selected them both and (I think right clicked them) to send to compressed folder. That compressed folder is the one i zip uploaded.
Step 23: Set up an api.ai
Sign into the api.ai console.
From the agents page, click “Create Agent.” (top left dropdown arrow under diagaflow)
Give your agent a name. Select “Private” and click “Save.” (was no option for private)
Navigate to the Agent Fulfillment page. (fulfillment a couple rows down from that dropdown arrow. click. Enable webhook....)
Flip the Webhook enabled toggle on, enter the HTTP trigger URL from the Google Cloud Function in the URL field, and click “Save.” (If you now go back to the cloud function from 22, if you look hard (seriously not that noticeable and easy to just select the wrong http address) you will find a "trigger" tab. That is the HTTP trigger URL you need to put in the webhook url (back in diagaflow). Save (bottom right))
Navigate to the Agent Settings page. (Gear icon by the dropdown arrow and name you gave it (Diagaflow))
Select the “Export and Import” tab and click the “Import from ZIP” button.
Select the ApiAi_MocktailsMixer.zip file from the cloned repository and import. (in the mocktails mixer master folder i believe)
Navigate to the Agent Integrations page: (Diagaflow still on left)
Flip the “Actions on Google” integration on and fill out the form. (This did not give me the option to flip it. just gave me a selection to test or view or something)
Select “Authorize” and then “Preview.” Note: Previews are only available for a period of time. Use “Deploy” to register your conversation action with Google. The registration process can take one to two weeks. Read more here.
Test your agent on the Google Home Web Simulator. (Sometimes it would say my project name and sometimes it wouldn't. I believe I may need to make some changes to my changes (i changed a name within the zipped files).

Good luck! I'm on California time and am at work right now but I have been updating my issue thread and am at the point where a lot of people have died off here. It seems to be a common issue online so I'm hoping I can get somewhere tonight.

@aliya16
Copy link
Author

aliya16 commented Apr 12, 2019

error
There is green tick already but this error is shown still.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants