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

When emulator/deploy fails to start due to timeout, report actual error and workaround. #8238

Open
MaitreyaBuddha opened this issue Feb 21, 2025 · 2 comments

Comments

@MaitreyaBuddha
Copy link
Contributor

I'm putting this here so maybe I or someone can work on fixing it. If you're getting

 FirebaseError: User code failed to load. Cannot determine backend specification

It could be many reasons. One of which is timeout.

Try

export FUNCTIONS_DISCOVERY_TIMEOUT=30

(from #8161 (comment))
If that works it was a timeout on a large codebase.

This feature is to report timeout instead of the ambiguous error, and give the solution.

Also the original template for features has a broken link: https://firebase.google.com/support/contact/bugs-features/

@MaitreyaBuddha
Copy link
Contributor Author

#8240

@aalej
Copy link
Contributor

aalej commented Feb 21, 2025

Thanks for opening up this issue and filing a PR! I do agree that it would be helpful to improve the error message to include the solution of increasing the timeout by setting the FUNCTIONS_DISCOVERY_TIMEOUT environment variable.

I'll check this with our engineering team

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