Estoy intentando hacer deploy a esta funcion en firebase para escribir un valor en cloud firestore cada cierto tiempo, me da error de Request: Error: could not handle the request
const functions = require('firebase-functions');
// // Create and Deploy Your First Cloud Functions
// // https://firebase.google.com/docs/functions/write-firebase-functions
//
exports.helloWorld = functions.https.onRequest((request, response) => {
firebase.initializeApp({
apiKey:
authDomain:
projectId:
});
var Today = new Date();
var Minutes = Today.getMinutes()
var Boolean = true
if (Minutes % 2 === 0) {
Boolean = true
}
else {
Boolean = false
}
var db = firebase.firestore();
db.collection("users").doc("Booleanos").set({
valor:Boolean
})
setTimeout(function(){location.reload()}, 6000);
});
firebase functions:log
.env