No HTTPS functions found. Use firebase functions:shell
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.
Edit: I tried serving the function without sudo
but I get permission issues:
firebase google-cloud-functions firebase-cli
add a comment |
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.
Edit: I tried serving the function without sudo
but I get permission issues:
firebase google-cloud-functions firebase-cli
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 runfirebase 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
add a comment |
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.
Edit: I tried serving the function without sudo
but I get permission issues:
firebase google-cloud-functions firebase-cli
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.
Edit: I tried serving the function without sudo
but I get permission issues:
firebase google-cloud-functions firebase-cli
firebase google-cloud-functions firebase-cli
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 runfirebase 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
add a comment |
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 runfirebase 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
add a comment |
2 Answers
2
active
oldest
votes
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.
add a comment |
Ok, I don't know why it worked, but I just restarted VSCode (because it had an update) and everything works now.
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
add a comment |
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.
add a comment |
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.
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.
answered Feb 20 at 7:10
keanokeano
35639
35639
add a comment |
add a comment |
Ok, I don't know why it worked, but I just restarted VSCode (because it had an update) and everything works now.
add a comment |
Ok, I don't know why it worked, but I just restarted VSCode (because it had an update) and everything works now.
add a comment |
Ok, I don't know why it worked, but I just restarted VSCode (because it had an update) and everything works now.
Ok, I don't know why it worked, but I just restarted VSCode (because it had an update) and everything works now.
answered Nov 16 '18 at 18:12
AskYousAskYous
1,0091227
1,0091227
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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