No HTTPS functions found. Use firebase functions:shell












0















I've been trying all day to get my functions to run locally but I don't know why it keeps saying I have no functions. I'm using typescript, so I ran tsc in the functions folder, then ran sudo firebase serve --only functions, but I get this error:



i  functions: No HTTPS functions found. 
Use firebase functions:shell if you would like to emulate other types of functions.


enter image description here



Edit: I tried serving the function without sudo but I get permission issues:



enter image description here










share|improve this question

























  • You have a warning message: "Failed to emulate helloWorld". What does the error log file say?

    – Doug Stevenson
    Nov 15 '18 at 23:12











  • It says "connection refused." See here: gist.github.com/AskYous/d4112ab86fa0731a0f168ccde3e1a306

    – AskYous
    Nov 16 '18 at 17:09











  • Any reason why you're using sudo to run firebase serve? That shouldn't be necessary.

    – Doug Stevenson
    Nov 16 '18 at 17:26











  • I get permission issues. I put a screenshot in the post above.

    – AskYous
    Nov 16 '18 at 17:35
















0















I've been trying all day to get my functions to run locally but I don't know why it keeps saying I have no functions. I'm using typescript, so I ran tsc in the functions folder, then ran sudo firebase serve --only functions, but I get this error:



i  functions: No HTTPS functions found. 
Use firebase functions:shell if you would like to emulate other types of functions.


enter image description here



Edit: I tried serving the function without sudo but I get permission issues:



enter image description here










share|improve this question

























  • You have a warning message: "Failed to emulate helloWorld". What does the error log file say?

    – Doug Stevenson
    Nov 15 '18 at 23:12











  • It says "connection refused." See here: gist.github.com/AskYous/d4112ab86fa0731a0f168ccde3e1a306

    – AskYous
    Nov 16 '18 at 17:09











  • Any reason why you're using sudo to run firebase serve? That shouldn't be necessary.

    – Doug Stevenson
    Nov 16 '18 at 17:26











  • I get permission issues. I put a screenshot in the post above.

    – AskYous
    Nov 16 '18 at 17:35














0












0








0








I've been trying all day to get my functions to run locally but I don't know why it keeps saying I have no functions. I'm using typescript, so I ran tsc in the functions folder, then ran sudo firebase serve --only functions, but I get this error:



i  functions: No HTTPS functions found. 
Use firebase functions:shell if you would like to emulate other types of functions.


enter image description here



Edit: I tried serving the function without sudo but I get permission issues:



enter image description here










share|improve this question
















I've been trying all day to get my functions to run locally but I don't know why it keeps saying I have no functions. I'm using typescript, so I ran tsc in the functions folder, then ran sudo firebase serve --only functions, but I get this error:



i  functions: No HTTPS functions found. 
Use firebase functions:shell if you would like to emulate other types of functions.


enter image description here



Edit: I tried serving the function without sudo but I get permission issues:



enter image description here







firebase google-cloud-functions firebase-cli






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 16 '18 at 17:35







AskYous

















asked Nov 15 '18 at 23:04









AskYousAskYous

1,0091227




1,0091227













  • You have a warning message: "Failed to emulate helloWorld". What does the error log file say?

    – Doug Stevenson
    Nov 15 '18 at 23:12











  • It says "connection refused." See here: gist.github.com/AskYous/d4112ab86fa0731a0f168ccde3e1a306

    – AskYous
    Nov 16 '18 at 17:09











  • Any reason why you're using sudo to run firebase serve? That shouldn't be necessary.

    – Doug Stevenson
    Nov 16 '18 at 17:26











  • I get permission issues. I put a screenshot in the post above.

    – AskYous
    Nov 16 '18 at 17:35



















  • You have a warning message: "Failed to emulate helloWorld". What does the error log file say?

    – Doug Stevenson
    Nov 15 '18 at 23:12











  • It says "connection refused." See here: gist.github.com/AskYous/d4112ab86fa0731a0f168ccde3e1a306

    – AskYous
    Nov 16 '18 at 17:09











  • Any reason why you're using sudo to run firebase serve? That shouldn't be necessary.

    – Doug Stevenson
    Nov 16 '18 at 17:26











  • I get permission issues. I put a screenshot in the post above.

    – AskYous
    Nov 16 '18 at 17:35

















You have a warning message: "Failed to emulate helloWorld". What does the error log file say?

– Doug Stevenson
Nov 15 '18 at 23:12





You have a warning message: "Failed to emulate helloWorld". What does the error log file say?

– Doug Stevenson
Nov 15 '18 at 23:12













It says "connection refused." See here: gist.github.com/AskYous/d4112ab86fa0731a0f168ccde3e1a306

– AskYous
Nov 16 '18 at 17:09





It says "connection refused." See here: gist.github.com/AskYous/d4112ab86fa0731a0f168ccde3e1a306

– AskYous
Nov 16 '18 at 17:09













Any reason why you're using sudo to run firebase serve? That shouldn't be necessary.

– Doug Stevenson
Nov 16 '18 at 17:26





Any reason why you're using sudo to run firebase serve? That shouldn't be necessary.

– Doug Stevenson
Nov 16 '18 at 17:26













I get permission issues. I put a screenshot in the post above.

– AskYous
Nov 16 '18 at 17:35





I get permission issues. I put a screenshot in the post above.

– AskYous
Nov 16 '18 at 17:35












2 Answers
2






active

oldest

votes


















1














Make sure you have nothing running on the same port that the Firebase function emulator is trying to run on, in my case I had a Docker container running on port 5000. Once I stopped it and started the Firebase function emulator it served the function correctly.






share|improve this answer































    0














    Ok, I don't know why it worked, but I just restarted VSCode (because it had an update) and everything works now.






    share|improve this answer























      Your Answer






      StackExchange.ifUsing("editor", function () {
      StackExchange.using("externalEditor", function () {
      StackExchange.using("snippets", function () {
      StackExchange.snippets.init();
      });
      });
      }, "code-snippets");

      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "1"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53329108%2fno-https-functions-found-use-firebase-functionsshell%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      1














      Make sure you have nothing running on the same port that the Firebase function emulator is trying to run on, in my case I had a Docker container running on port 5000. Once I stopped it and started the Firebase function emulator it served the function correctly.






      share|improve this answer




























        1














        Make sure you have nothing running on the same port that the Firebase function emulator is trying to run on, in my case I had a Docker container running on port 5000. Once I stopped it and started the Firebase function emulator it served the function correctly.






        share|improve this answer


























          1












          1








          1







          Make sure you have nothing running on the same port that the Firebase function emulator is trying to run on, in my case I had a Docker container running on port 5000. Once I stopped it and started the Firebase function emulator it served the function correctly.






          share|improve this answer













          Make sure you have nothing running on the same port that the Firebase function emulator is trying to run on, in my case I had a Docker container running on port 5000. Once I stopped it and started the Firebase function emulator it served the function correctly.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Feb 20 at 7:10









          keanokeano

          35639




          35639

























              0














              Ok, I don't know why it worked, but I just restarted VSCode (because it had an update) and everything works now.






              share|improve this answer




























                0














                Ok, I don't know why it worked, but I just restarted VSCode (because it had an update) and everything works now.






                share|improve this answer


























                  0












                  0








                  0







                  Ok, I don't know why it worked, but I just restarted VSCode (because it had an update) and everything works now.






                  share|improve this answer













                  Ok, I don't know why it worked, but I just restarted VSCode (because it had an update) and everything works now.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Nov 16 '18 at 18:12









                  AskYousAskYous

                  1,0091227




                  1,0091227






























                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Stack Overflow!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53329108%2fno-https-functions-found-use-firebase-functionsshell%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      Bressuire

                      Vorschmack

                      Quarantine