[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Firebase Emulator initialization URL given for module grouped firebase functions hangs and requires modification to work. #2966

Closed
letsgamedotdev opened this issue Dec 24, 2020 · 1 comment · Fixed by #2977

Comments

@letsgamedotdev
Copy link
letsgamedotdev commented Dec 24, 2020

[REQUIRED] Environment info

firebase-tools: Firebase 9.1.0

Platform: Windows

[REQUIRED] Test case

// ... from index.ts
exports.auth = require("./authFunctions");
// ... from authFunctons.ts
exports.isAdmin = functions.https.onCall((_, context) => {...}

In firebase CLI

+  functions[auth-isAdmin]: http function initialized (http://localhost:5001/letsplaydotdev/us-central1/auth.isAdmin). 

Going to http://localhost:5001/letsplaydotdev/us-central1/auth.isAdmin hangs and never responds. Going to http://localhost:5001/letsplaydotdev/us-central1/auth-isAdmin does establish connection.

[REQUIRED] Steps to reproduce

Create function group and export it in index.ts. Start up emulator using firebase emulators:start. The initialized URL outputted hangs.

[REQUIRED] Expected behavior

The firebase function's outputted URL does not hang.

[REQUIRED] Actual behavior

The firebase function's outputted URL does hang.

@letsgamedotdev letsgamedotdev changed the title Firebase Emulator, The URL given for module grouped firebase functions hangs and requires modification. Firebase Emulator, The initialization URL given for module grouped firebase functions hangs and requires modification to work. Dec 24, 2020
@letsgamedotdev letsgamedotdev changed the title Firebase Emulator, The initialization URL given for module grouped firebase functions hangs and requires modification to work. Firebase Emulator initialization URL given for module grouped firebase functions hangs and requires modification to work. Dec 26, 2020
@samtstern samtstern self-assigned this Dec 28, 2020
@samtstern
Copy link
Contributor

@letsgamedotdev thanks for reporting this! That seems like a clear bug, I'll get a fix together.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants