-
Notifications
You must be signed in to change notification settings - Fork 956
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
Emulator not working with multiple express servers on multiple http triggers across different codebases with --inspect-functions #8067
Comments
Hey @EthanSK, thanks for reaching out. I'm working on reproducing this issue, but I'm having some difficulty. To get a better overview of how your functions are set up, and to help us accurately reproduce this error. Could you verify the ff:
Also, are there any errors or warnings raised in the |
yes the assumption is correct, but its not necessary to reproduce the bug ( i think) The issue is hard to reproduce in the same way reliably, its just general buggy behaviour. usually the debugger works for only one of the apps, sometimes not at all, and usually at least one of the apps just doesn't reply to http calls. But it always has at least one of these issues, making the workflow unusable. If i remove --inspect-functions it works fine on both http servers and they both respond to requests as expected There dont seem to be any errors in the log. just a warning as expected
|
hs_err_pid3494.log it gets generated when ctr+c to shut down the emulators. In the terminal it hangs at i logging: Stopping Logging Emulator |
Thanks for the additional information. At the moment, I think the issue here might be because when passing the Regarding the error from your latest comment. Could you please open up a new report for this as this seems to be a different issue? Looks related to the Firestore emulator. |
ok, looking forward to the fix, debugging is crucial, and having this multi-codebase setup with proper debugging support can really make firebase a true all in one solution that trumps all else :) |
[REQUIRED] Environment info
firebase-tools: 13.29.1
Platform: macOS
[REQUIRED] Test case
have 2 of these (across 2 codebases, with different names for each (i have api and worker))
[REQUIRED] Steps to reproduce
run with --inspect-functions (also using firestore emulator with import and export data, but this isnth relevant)
(my command is this
firebase emulators:start --only functions,firestore --project staging --import=./emulator-export-data --export-on-exit=./emulator-export-data
)[REQUIRED] Expected behavior
functions to work with debugger
[REQUIRED] Actual behavior
doesn't work at all, seems to get stuck or something and stops responding to requests. one of the http servers sometimes works with debugging, but the other one doesnt work at all (the first one sends a request to the second one over http)
it works just fine without inspect-functions, i assume its coz it allows for parallel execution which is related to allowing multiple express instances across codebases for multiple http triggered functions)
(also side-note, watching and refreshing on changes doestn seem to be working under this scenario too, I have to use nodemon)
The text was updated successfully, but these errors were encountered: