skip to Main Content

Firebase – Unable to Deploy Cloud Functions – Permission denied to enable service [artifactregistry.googleapis.com]

I'm trying to deploy the default test function to check that everything works. const functions = require("firebase-functions"); exports.helloWorld = functions.https.onRequest((request, response) => { functions.logger.info("Hello logs!", {structuredData: true}); response.send("Hello from Firebase!"); }); But when I run firebase deploy or firebase deploy…

VIEW QUESTION

Firebase Callable Cloud Function CORS Error using Firebase Emulator and Vite

The following is the client-side code to call the cloud function: // add a new post addPostForm.addEventListener('click', (e) => { e.preventDefault(); const addPost = httpsCallable(functions, 'addPost'); addPost({ title: addPostForm.postTitle.value, description: addPostForm.postDescription.value, }) .then(() => { addPostForm.reset(), addPostModal.classList.remove('open'); addPostForm.querySelector('.error').textContent = '';…

VIEW QUESTION

Firebase – Convert milliseconds to Firestore date

In Flutter I convert dates to milliseconds like this: static DateTime createDateTimeNow() { return DateTime(DateTime.now().year, DateTime.now().month, DateTime.now().day, 0, 0, 0, 0, 0); } // This create a number value like 1660341600000 final Number millisecondsNow = Helpers.createDateTimeNow().toUtc().millisecondsSinceEpoch; // I can also…

VIEW QUESTION
Back To Top
Search