Closed
Description
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?