Can't find my Function URL on deploying webhook on Firebase

1,997 views
Skip to first unread message

Maverick Girl

unread,
Dec 19, 2017, 12:16:45 PM12/19/17
to Firebase Google Group
I was trying to execute this set on instructions while deploying webhook using Google Cloud Functions for Firebase and the static resources needed by the project using Firebase Hosting:

  1. Run firebase init, and select to configure Hosting and Functions. Select the project. In the configuration wizard, accept all the default choices.
  2. Generate a private key using Firebase Settings/Service Accounts, and edit functions/database.js with the path to the JSON cert file. Now populate the database: node database.js
  3. Run firebase deploy and take note of the endpoint where the fulfillment webhook has been published. It should look like Function URL (yourGame): https://us-central1-YOUR_PROJECT.cloudfunctions.net/yourGame. The command will also deploy the static assets at https://us-central1-YOUR_PROJECT.cloudfunctions.net/.

On running firebase deploy I can't find the "Function URL". It would just display "Hosting URL" and "Project Console".
A screenshot is attached upon running "firebase deploy" on CLI.

And also what does it mean by "Now populate the database: node database.js"?

Screenshot (17).png

Doug Stevenson

unread,
Dec 19, 2017, 5:19:51 PM12/19/17
to Firebase Google Group
Please update your CLI package.  The missing URL was fixed in 3.16.0.

npm install -g firebase-tools

Doug

Maverick Girl

unread,
Dec 20, 2017, 5:24:01 AM12/20/17
to Firebase Google Group
Didn't work for me :( 
Screenshot (18).png

Doug Stevenson

unread,
Dec 20, 2017, 11:08:14 AM12/20/17
to fireba...@googlegroups.com
What's the contents of your index.js?  Do you have any HTTPS function defined?

Exactly what instructions are you following?  They don't look like anything from Firebase documentation.

--
You received this message because you are subscribed to a topic in the Google Groups "Firebase Google Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/firebase-talk/lq0rixLkhCM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to firebase-talk+unsubscribe@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/d82a82b6-fe49-4d5b-b5df-998ec5bcd0f7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Maverick Girl

unread,
Dec 20, 2017, 1:13:11 PM12/20/17
to Firebase Google Group

Doug Stevenson

unread,
Dec 20, 2017, 3:58:38 PM12/20/17
to Firebase Google Group
Ah, that wasn't produced by the Firebase team.  Looks like it's owned by the DialogFlow team.  I'd file a bug report against that repo and describe what you're running into.

As far as the Firebase CLI is concerned, if you deploy an HTTPS function, the CLI output will contain a URL to that function.  My guess is that there is possibly some misunderstanding about the location or contents about that index.js as it exists in your firebase project folder.

Doug

Maverick Girl

unread,
Dec 21, 2017, 5:31:41 AM12/21/17
to Firebase Google Group
Thanks. However, for now, do I need to make any changes in my index.js file to obtain the function URL? 
How and where do I find my Function URL?

Maverick Girl

unread,
Dec 21, 2017, 11:02:35 AM12/21/17
to Firebase Google Group
Oh! Now what changes do I need to make in my index.js file to obtain the Function URL?
How and where will I find it now? :/ 
Reply all
Reply to author
Forward
0 new messages