4

I keep getting this error message in Firebase functions/logs

dialogflowFirebaseFulfillment
 TypeError: handler is not a function
    at cloudFunction (/srv/node_modules/firebase-functions/lib/providers/https.js:57:9)
    at /worker/worker.js:783:7
    at /worker/worker.js:766:11
    at _combinedTickCallback (internal/process/next_tick.js:132:7)
    at process._tickDomainCallback (internal/process/next_tick.js:219:9)

Originally my actions on google project was working fine, I just got mp3s playing, referencing new user or returning user, etc, everything worked then all of a sudden this error started appearing though I never edited https.js, I have no idea why this error just started anyone familiar with this?

2
  • The error is in a library, but suggests that there may be something incorrect about how you're registering your firebase function. Please update your question to show the code you're using, particularly if you have a function named dialogflowFirebaseFulfillment Commented May 23, 2019 at 16:27
  • Thanks, I already started over from scratch and had deleted all that code unfortunately. Commented May 25, 2019 at 16:42

1 Answer 1

2

For others encountering this error: For me it was an incorrect function registration. I registered my function as a standard https-function with onRequest and tried calling it as a callable function. Changing the registration to use onCall solved this issue.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.