Skip to content

Auth error:FetchError: request to https://www.googleapis.com/oauth2/v4/token failed, reason: socket hang up #540

@florent1933

Description

@florent1933

Describe your environment

  • Library version:
    "firebase": "5.7.0",
    "firebase-admin": "5.13.1",
  • Firebase Product: database

Describe the problem

I am running a server in production and regularly I have this error:

7|single   | [2019-05-26T07:16:19.801Z]  @firebase/database: FIREBASE WARNING: {"code":"app/invalid-credential","message":"Credential implementation provided to initializeApp() via the \"credential\" property failed to fetch a valid Google OAuth2 access token with the following error: \"socket hang up\"."} 
7|single   | Auth error:FetchError: request to https://www.googleapis.com/oauth2/v4/token failed, reason: socket hang up

This error happens randomly (~1 week or ~2 weeks after the server has started) and when it's happen, I have to restart the server.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions