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

Got 'INTERNAL ASSERT FAILED: Unable to get project config' error when use Emulator #2461

Open
comicat-hu opened this issue Feb 19, 2024 · 0 comments

Comments

@comicat-hu
Copy link

[READ] Step 1: Are you in the right place?

  • For issues related to the code in this repository file a Github issue.
  • If the issue pertains to Cloud Firestore, read the instructions in the "Firestore issue"
    template.
  • For general technical questions, post a question on StackOverflow
    with the firebase tag.
  • For general Firebase discussion, use the firebase-talk
    google group.
  • For help troubleshooting your application that does not fall under one
    of the above categories, reach out to the personalized
    Firebase support channel.

[REQUIRED] Step 2: Describe your environment

  • Operating System version: macOS 12.4
  • Firebase SDK version: v11.11.1
  • Firebase Product: auth (auth, database, storage, etc)
  • Node.js version: v18.18.2
  • NPM version: v.9.8.1

[REQUIRED] Step 3: Describe the problem

Steps to reproduce:

What happened? How can we make the problem occur?
This could be a description, log/console output, etc.

Relevant Code:

export FIREBASE_AUTH_EMULATOR_HOST="127.0.0.1:9099"

import { initializeApp } from "firebase-admin/app";
import { getAuth } from "firebase-admin/auth";

const app = initializeApp({
  projectId: 'xxxxx',
});

const run = async () => {
    const projectConfigManager = getAuth(app).projectConfigManager();
    const projectConfig = await projectConfigManager.getProjectConfig();
};

run();

Got error when getProjectConfig with local emulator

FirebaseAuthError: INTERNAL ASSERT FAILED: Unable to get project config
    at /xxx/node_modules/firebase-admin/lib/auth/auth-api-request.js:1658:15
    at /xxx/node_modules/firebase-admin/lib/auth/auth-api-request.js:1615:13
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async run {
  errorInfo: {
    code: 'auth/internal-error',
    message: 'INTERNAL ASSERT FAILED: Unable to get project config'
  },
  codePrefix: 'auth'
}

It seems to be missing the config name field in the response ?

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