Skip to content

Getting "Client is offline" error reading from Realtime Database after upgrading to 11.0.0 #6390

Closed
@Hivemind9000

Description

@Hivemind9000

Environment:

Firebase SDK version: 11.0.0
Firebase Product: database
Node.js version: 14

Problem:

After upgrading to 11.0.0 I started to get the error "Client is offline" when reading from the Realtime Database. The cloud function that threw the issue had not been changed for months. When I reverted back to 10.2.0 (the version I was on previously) the problem disappeared.

The relevant line of code was:

const sysCtlDS = await admin.database().ref('/system/directive/status').get();

I tried a solution from Stackoverflow, but instead of getting the "Client is offline" error, the cloud function just hung on that request and timed out.

const sysCtlDS = await admin.database().ref('/system/directive/status').once('value');

Any ideas as to why this is occurring?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions