Skip to content

FirebaseError #8161

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

Closed
ebisatesfaye opened this issue Feb 1, 2025 · 3 comments
Closed

FirebaseError #8161

ebisatesfaye opened this issue Feb 1, 2025 · 3 comments

Comments

@ebisatesfaye
Copy link

!! functions: Failed to load function definition from source: FirebaseError: User code failed to load. Cannot determine backend specification

I am suffering by this error please anybody help me ?

@aalej
Copy link
Contributor

aalej commented Feb 3, 2025

Hey @ebisatesfaye, sorry to hear you’re encountering this issue. From what I can gather, the User code failed to load. Cannot determine backend specification error usually occurs when the Firebase CLI tries to emulate/deploy a large codebase.

A way to resolve this issue is to set the env variable FUNCTIONS_DISCOVERY_TIMEOUT . This environment variable accepts a numeric value of seconds. For example, export FUNCTIONS_DISCOVERY_TIMEOUT=30.

If the issue still occurs after trying this solution, could you please open up a new report and share the details using the specified template? This is because for us to be able to further investigate the issue, we would need other information. Thanks!

@aalej aalej closed this as completed Feb 3, 2025
@ebisatesfaye
Copy link
Author

Thanks i will try

@MaitreyaBuddha
Copy link
Contributor

@aalej This is awesome, I am fixed! It was tough even finding this issue with the comment that had the fix for me.

I made #8238 so this can get fixed. Maybe by me. It has cost me a lot of time.

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

3 participants