firebase-tools: Unable to find a valid endpoint for function mail

[REQUIRED] Environment info

firebase-tools: 11.4.0

Platform: macOS and Github Actions

[REQUIRED] Test case

[REQUIRED] Steps to reproduce

firebase deploy --only hosting:sometarget or

      - uses: FirebaseExtended/action-hosting-deploy@v0
        with:
          repoToken: '${{ secrets.GITHUB_TOKEN }}'
          firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_DEV }}'
          projectId: xxxxxx
          channelID: live
          target: ${{ env.TARGET }}
        env:
          FIREBASE_CLI_PREVIEWS: hostingchannels

[REQUIRED] Expected behavior

Should deploy successfully, because last deployment succeeded on 17 Jun without code changes.

***
  details_url: 'https://xxx.web.app/',
  conclusion: 'success',
  output: ***
    title: 'Production deploy succeeded',
    summary: '[xxx.web.app](https://xxx.web.app/)'
  ***
***

[REQUIRED] Actual behavior

Deployment fails with the following error message:

  ***
    "status": "error",
    "error": "Unable to find a valid endpoint for function mail"
  ***
```
<!-- Run the command with --debug flag, and include the logs below. -->

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 6
  • Comments: 25 (11 by maintainers)

Most upvoted comments

I encountered the same issue after updating firebase to the latest version which is 11.4.0

UPDATE: I had to uninstall the latest version of firebase and install the previous version which is 11.3.0 IT WORKED!!

I hope it’s the same case for you so you can also resolve this for your project.

By the way, these are the commands for uninstalling and installing an older version of firebase: npm uninstall -g firebase-tools npm install -g firebase-tools@11.3.0

Alright, I’ve confirmed that v11.4.1 should actually “fix” the deploys that were failing to find the callable functions. It fixes it by simply ignoring the fact that the CLI can’t find the function (because it only looks for https). I’ll make a small PR that allows callable function rewrites as well which will get rid of the warning message that’s printed, but y’all should be unblocked on the latest release.

Let me know if you’re still seeing issues.

This issue does not have all the information required by the template. Looks like you forgot to fill out some sections. Please update the issue with more information.