Currently, I am working on integrating a schedule function into my Firebase project. This particular function is designed to extract data from Firebase RTDB. However, during testing, I encountered an issue where the function logs indicated a "Client is offline" error. Despite attempting various approaches such as including and excluding queries within the code snippet below:
firebase.database("some link here")
.ref().child("ticket").get().then((value) => {
value.forEach((element) => {
console.log(element.key);
})
});
I have conducted extensive research in search of a solution, but unfortunately, no viable remedy has been found thus far. Any insights or assistance in resolving this matter would be greatly appreciated. Thank you! :D