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

Functions keep loading forever when firebase emulators:start #6449

Closed
EmilioNicolas opened this issue Oct 16, 2023 · 4 comments
Closed

Functions keep loading forever when firebase emulators:start #6449

EmilioNicolas opened this issue Oct 16, 2023 · 4 comments

Comments

@EmilioNicolas
Copy link

EmilioNicolas commented Oct 16, 2023

Environment info

firebase-tools: 12.7.0

Platform: Mac

Test case

I am running firebase emulators:start and it never stops logging and apparently reloading functions. This used to work with my last firebase version of firebase-tools

Steps to reproduce

run firebase emulators:start with python functions

Expected behavior

Emulators are up and running and log stop reloading functions continuously

Actual behavior

Firebase cli keeps reloading functions: ✔ functions: Loaded functions definitions from source: ...

@EmilioNicolas
Copy link
Author

Maybe this PR has something to do: #6442

@EmilioNicolas
Copy link
Author

EmilioNicolas commented Oct 16, 2023

It seems is because of this:

File /Users/emilio/Code/project/functions/Encoded-values.json changed

That file is from urlencoder library

@aalej
Copy link
Contributor

aalej commented Oct 16, 2023

Hi @EmilioNicolas, thanks for reaching out. I’m trying to reproduce the behavior you’re encountering, but so far I’m unable to replicate the issue. When starting the emulator, it only loads the functions on initial start, and when any changes are made.

From what I can guess, in your case the contents of the file /Users/emilio/Code/project/functions/Encoded-values.json is being changed, which is causing the functions to be reloaded.

Could you share with us your firebase-debug.log file and sample code snippets so that we can reproduce the issue on our end? Please remove any PII (personal identifiable information) before sharing the file. By any chance, if you can create a minimal, reproducible sample, please share it as well.

@aalej aalej added the Needs: Author Feedback Issues awaiting author feedback label Oct 16, 2023
@EmilioNicolas
Copy link
Author

Ey! Thanks for your answer, I finally changed urlencoder by urllib in python imports and all good with that. It is not a bug from firebase, but something related with my config. Thanks anyway!!

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

No branches or pull requests

2 participants