Error publishing Cloud Functions

Custom Code
Resolved

I've already had this bug once, but now I've decided to make a post about it because it's really annoying.

All I do is get this error IN A LOOP and sometimes for no reason at all,


Obviously, my first instinct is to say to myself that the error is mine, so I've simplified my cloud function again and again until I get this:

const functions = require('firebase-functions');
const admin = require('firebase-admin');
// To avoid deployment errors, do not call admin.initializeApp() in your code

exports.recipesCheck = functions.https.onCall(
  (data, context) => {
    // Write your code below!
    
    try {
      // Add an empty document to the 'recipes' collection
      await admin.firestore().collection('recipes').add({"category":"breakfast"});
    } catch (error) {
      console.error("Firestore Error:", error.message);
    }

    // Write your code above!
  }
);

But it still doesn't work... So maybe even in this cloud function I've just shown you there's an error (in which case I'm sorry), but I've literally copied my own code from another function that I've deployed on another app and which works...

Also, on the "โ“˜", I have this:

"Error: Unknown error. Please contact [email protected]."

That's why I'm posting this message here...

And finally, when I go here :

https://console.firebase.google.com/u/0/project/*MYPROJECT*/functions/list

The function doesn't appear, so the bug isn't because it already exists

What have you tried so far?

Listed above

Did you check FlutterFlow's Documentation for this topic?
Yes
1
1 reply