0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Firebase Authenticationへの接続エラー

Last updated at Posted at 2022-06-25

FirebaseAdminSDKを使用し、Firebase Authenticationを操作した際に 下記エラーが出た。

Error fetching user data: FirebaseAppError: Error while making request: connect ECONNREFUSED 127.0.0.1:9099. Error code: ECONNREFUSED

理由

FIREBASE_AUTH_EMULATOR_HOST環境変数が設定されている場合、FirebaseAdminSDKは自動的に認証エミュレータに接続します。

FIREBASE_AUTH_EMULATOR_HOSTが設定されているため

解決法

unset FIREBASE_AUTH_EMULATOR_HOST

FIREBASE_AUTH_EMULATOR_HOST環境変数を削除する

資料

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?