Functions-samples: cannot read property 'email' of undefined

Created on 20 Mar 2018  路  4Comments  路  Source: firebase/functions-samples

this is the error i get when i try to run cloud functions locally

error

Most helpful comment

@nicolasgarnier I followed the sample in functions-samples/quickstarts/email-users/functions/
and followed every step mentioned in the sample ....but I am still getting the same error when I want to test the functions locally......I don't get any kind of error when I deploy these functions , but deployment is taking too long....about 15-20 minutes

All 4 comments

@MalikFaizanZafar which sample is that for? (there are like 50 apps/samples in this repo).

Have you followed all the steps in the README? including setting configuration attributes?

@nicolasgarnier I followed the sample in functions-samples/quickstarts/email-users/functions/
and followed every step mentioned in the sample ....but I am still getting the same error when I want to test the functions locally......I don't get any kind of error when I deploy these functions , but deployment is taking too long....about 15-20 minutes

check https://github.com/firebase/functions-samples/tree/master/quickstarts/email-users
"Set the gmail.email and gmail.password Google Cloud environment variables to match the email and password of the Gmail account used to send emails (or the app password if your account has 2-step verification enabled). For this use:
firebase functions:config:set gmail.email="[email protected]" gmail.password="secretpassword""

In my case running firebase functions:config:set ... did not work, I solved the issue following this answer https://stackoverflow.com/a/51883276 by creating a .runtimeconfig.json file:

$ firebase functions:config:get > .runtimeconfig.json && firebase functions:shell
Was this page helpful?
0 / 5 - 0 ratings

Related issues

artcab picture artcab  路  4Comments

blaforet picture blaforet  路  3Comments

Qzingo picture Qzingo  路  3Comments

IchordeDionysos picture IchordeDionysos  路  3Comments

nhathiwala picture nhathiwala  路  4Comments