Can't deploy firebase cloud function for flutter












0















Error: Error occurred while parsing your function triggers.



TypeError: require(...) is not a function
at Object.<anonymous> (A:Android Projectsbuy_storage_trybuyfunctionsindex.js:21:45)


And this is the line of code:



const gcs = require('@google-cloud/storage')(gcconfig);


full error message:



Error: Error occurred while parsing your function triggers.

TypeError: require(...) is not a function
at Object.<anonymous> (A:Android Projectsbuy_storage_trybuyfunctionsindex.js:21:45)
at Module._compile (internal/modules/cjs/loader.js:688:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
at Module.load (internal/modules/cjs/loader.js:598:32)
at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
at Function.Module._load (internal/modules/cjs/loader.js:529:3)
at Module.require (internal/modules/cjs/loader.js:636:17)
at require (internal/modules/cjs/helpers.js:20:18)
at C:UsersitzpaAppDataRoamingnpmnode_modulesfirebase-toolslibtriggerParser.js:15:15
at Object.<anonymous> (C:UsersitzpaAppDataRoamingnpmnode_modulesfirebase-toolslibtriggerParser.js:53:3)


The code:



const functions = require('firebase-functions');
const cors = require('cors')({ origin: true });
const Busboy = require('busboy');
const os = require('os');
const path = require('path');
const fs = require('fs');
const fbAdmin = require('firebase-admin');
const uuid = require('uuid/v4');

// // Create and Deploy Your First Cloud Functions
// // https://firebase.google.com/docs/functions/write-firebase-functions
//
// exports.helloWorld = functions.https.onRequest((request, response) => {
// response.send("Hello from Firebase!");
// });
const gcconfig = {
projectId: '***',
keyFilename: '***.json'
};

const gcs = require('@google-cloud/storage')(gcconfig);

fbAdmin.initializeApp({
credential: fbAdmin.credential.cert(require('./***.json'))
});

exports.storeImage = functions.https.onRequest((req, res) => {
return cors(req, res, () => {
if (req.method !== 'POST') {
return res.status(500).json({ message: 'Not allowed.' });
}

if (
!req.headers.authorization ||
!req.headers.authorization.startsWith('Bearer ')
) {
return res.status(401).json({ error: 'Unauthorized.' });
}

let idToken;
idToken = req.headers.authorization.split('Bearer ')[1];

const busboy = new Busboy({ headers: req.headers });
let uploadData;
let oldImagePath;

busboy.on('file', (fieldname, file, filename, encoding, mimetype) => {
const filePath = path.join(os.tmpdir(), filename);
uploadData = { filePath: filePath, type: mimetype, name: filename };
file.pipe(fs.createWriteStream(filePath));
});

busboy.on('field', (fieldname, value) => {
oldImagePath = decodeURIComponent(value);
});

busboy.on('finish', () => {
const bucket = gcs.bucket('flutter-buy.appspot.com');
const id = uuid();
let imagePath = 'images/' + id + '-' + uploadData.name;
if (oldImagePath) {
imagePath = oldImagePath;
}

return fbAdmin
.auth()
.verifyIdToken(idToken)
.then(decodedToken => {
return bucket.upload(uploadData.filePath, {
uploadType: 'media',
destination: imagePath,
metadata: {
metadata: {
contentType: uploadData.type,
firebaseStorageDownloadTokens: id
}
}
});
})
.then(() => {
return res.status(201).json({
imageUrl:
'https://firebasestorage.googleapis.com/v0/b/' +
bucket.name +
'/o/' +
encodeURIComponent(imagePath) +
'?alt=media&token=' +
id,
imagePath: imagePath
});
})
.catch(error => {
return res.status(401).json({ error: 'Unauthorized!' });
});
});
return busboy.end(req.rawBody);
});
});









share|improve this question

























  • What version of @google/cloud-storage are you using, and what documentation are you using that suggests your code should be correct?

    – Doug Stevenson
    Nov 23 '18 at 5:07











  • @google-cloud/storage@2.3.1 I'm using a video tutorial by Maximilian Schwarzmüller

    – Adam CJ
    Nov 23 '18 at 22:23
















0















Error: Error occurred while parsing your function triggers.



TypeError: require(...) is not a function
at Object.<anonymous> (A:Android Projectsbuy_storage_trybuyfunctionsindex.js:21:45)


And this is the line of code:



const gcs = require('@google-cloud/storage')(gcconfig);


full error message:



Error: Error occurred while parsing your function triggers.

TypeError: require(...) is not a function
at Object.<anonymous> (A:Android Projectsbuy_storage_trybuyfunctionsindex.js:21:45)
at Module._compile (internal/modules/cjs/loader.js:688:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
at Module.load (internal/modules/cjs/loader.js:598:32)
at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
at Function.Module._load (internal/modules/cjs/loader.js:529:3)
at Module.require (internal/modules/cjs/loader.js:636:17)
at require (internal/modules/cjs/helpers.js:20:18)
at C:UsersitzpaAppDataRoamingnpmnode_modulesfirebase-toolslibtriggerParser.js:15:15
at Object.<anonymous> (C:UsersitzpaAppDataRoamingnpmnode_modulesfirebase-toolslibtriggerParser.js:53:3)


The code:



const functions = require('firebase-functions');
const cors = require('cors')({ origin: true });
const Busboy = require('busboy');
const os = require('os');
const path = require('path');
const fs = require('fs');
const fbAdmin = require('firebase-admin');
const uuid = require('uuid/v4');

// // Create and Deploy Your First Cloud Functions
// // https://firebase.google.com/docs/functions/write-firebase-functions
//
// exports.helloWorld = functions.https.onRequest((request, response) => {
// response.send("Hello from Firebase!");
// });
const gcconfig = {
projectId: '***',
keyFilename: '***.json'
};

const gcs = require('@google-cloud/storage')(gcconfig);

fbAdmin.initializeApp({
credential: fbAdmin.credential.cert(require('./***.json'))
});

exports.storeImage = functions.https.onRequest((req, res) => {
return cors(req, res, () => {
if (req.method !== 'POST') {
return res.status(500).json({ message: 'Not allowed.' });
}

if (
!req.headers.authorization ||
!req.headers.authorization.startsWith('Bearer ')
) {
return res.status(401).json({ error: 'Unauthorized.' });
}

let idToken;
idToken = req.headers.authorization.split('Bearer ')[1];

const busboy = new Busboy({ headers: req.headers });
let uploadData;
let oldImagePath;

busboy.on('file', (fieldname, file, filename, encoding, mimetype) => {
const filePath = path.join(os.tmpdir(), filename);
uploadData = { filePath: filePath, type: mimetype, name: filename };
file.pipe(fs.createWriteStream(filePath));
});

busboy.on('field', (fieldname, value) => {
oldImagePath = decodeURIComponent(value);
});

busboy.on('finish', () => {
const bucket = gcs.bucket('flutter-buy.appspot.com');
const id = uuid();
let imagePath = 'images/' + id + '-' + uploadData.name;
if (oldImagePath) {
imagePath = oldImagePath;
}

return fbAdmin
.auth()
.verifyIdToken(idToken)
.then(decodedToken => {
return bucket.upload(uploadData.filePath, {
uploadType: 'media',
destination: imagePath,
metadata: {
metadata: {
contentType: uploadData.type,
firebaseStorageDownloadTokens: id
}
}
});
})
.then(() => {
return res.status(201).json({
imageUrl:
'https://firebasestorage.googleapis.com/v0/b/' +
bucket.name +
'/o/' +
encodeURIComponent(imagePath) +
'?alt=media&token=' +
id,
imagePath: imagePath
});
})
.catch(error => {
return res.status(401).json({ error: 'Unauthorized!' });
});
});
return busboy.end(req.rawBody);
});
});









share|improve this question

























  • What version of @google/cloud-storage are you using, and what documentation are you using that suggests your code should be correct?

    – Doug Stevenson
    Nov 23 '18 at 5:07











  • @google-cloud/storage@2.3.1 I'm using a video tutorial by Maximilian Schwarzmüller

    – Adam CJ
    Nov 23 '18 at 22:23














0












0








0








Error: Error occurred while parsing your function triggers.



TypeError: require(...) is not a function
at Object.<anonymous> (A:Android Projectsbuy_storage_trybuyfunctionsindex.js:21:45)


And this is the line of code:



const gcs = require('@google-cloud/storage')(gcconfig);


full error message:



Error: Error occurred while parsing your function triggers.

TypeError: require(...) is not a function
at Object.<anonymous> (A:Android Projectsbuy_storage_trybuyfunctionsindex.js:21:45)
at Module._compile (internal/modules/cjs/loader.js:688:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
at Module.load (internal/modules/cjs/loader.js:598:32)
at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
at Function.Module._load (internal/modules/cjs/loader.js:529:3)
at Module.require (internal/modules/cjs/loader.js:636:17)
at require (internal/modules/cjs/helpers.js:20:18)
at C:UsersitzpaAppDataRoamingnpmnode_modulesfirebase-toolslibtriggerParser.js:15:15
at Object.<anonymous> (C:UsersitzpaAppDataRoamingnpmnode_modulesfirebase-toolslibtriggerParser.js:53:3)


The code:



const functions = require('firebase-functions');
const cors = require('cors')({ origin: true });
const Busboy = require('busboy');
const os = require('os');
const path = require('path');
const fs = require('fs');
const fbAdmin = require('firebase-admin');
const uuid = require('uuid/v4');

// // Create and Deploy Your First Cloud Functions
// // https://firebase.google.com/docs/functions/write-firebase-functions
//
// exports.helloWorld = functions.https.onRequest((request, response) => {
// response.send("Hello from Firebase!");
// });
const gcconfig = {
projectId: '***',
keyFilename: '***.json'
};

const gcs = require('@google-cloud/storage')(gcconfig);

fbAdmin.initializeApp({
credential: fbAdmin.credential.cert(require('./***.json'))
});

exports.storeImage = functions.https.onRequest((req, res) => {
return cors(req, res, () => {
if (req.method !== 'POST') {
return res.status(500).json({ message: 'Not allowed.' });
}

if (
!req.headers.authorization ||
!req.headers.authorization.startsWith('Bearer ')
) {
return res.status(401).json({ error: 'Unauthorized.' });
}

let idToken;
idToken = req.headers.authorization.split('Bearer ')[1];

const busboy = new Busboy({ headers: req.headers });
let uploadData;
let oldImagePath;

busboy.on('file', (fieldname, file, filename, encoding, mimetype) => {
const filePath = path.join(os.tmpdir(), filename);
uploadData = { filePath: filePath, type: mimetype, name: filename };
file.pipe(fs.createWriteStream(filePath));
});

busboy.on('field', (fieldname, value) => {
oldImagePath = decodeURIComponent(value);
});

busboy.on('finish', () => {
const bucket = gcs.bucket('flutter-buy.appspot.com');
const id = uuid();
let imagePath = 'images/' + id + '-' + uploadData.name;
if (oldImagePath) {
imagePath = oldImagePath;
}

return fbAdmin
.auth()
.verifyIdToken(idToken)
.then(decodedToken => {
return bucket.upload(uploadData.filePath, {
uploadType: 'media',
destination: imagePath,
metadata: {
metadata: {
contentType: uploadData.type,
firebaseStorageDownloadTokens: id
}
}
});
})
.then(() => {
return res.status(201).json({
imageUrl:
'https://firebasestorage.googleapis.com/v0/b/' +
bucket.name +
'/o/' +
encodeURIComponent(imagePath) +
'?alt=media&token=' +
id,
imagePath: imagePath
});
})
.catch(error => {
return res.status(401).json({ error: 'Unauthorized!' });
});
});
return busboy.end(req.rawBody);
});
});









share|improve this question
















Error: Error occurred while parsing your function triggers.



TypeError: require(...) is not a function
at Object.<anonymous> (A:Android Projectsbuy_storage_trybuyfunctionsindex.js:21:45)


And this is the line of code:



const gcs = require('@google-cloud/storage')(gcconfig);


full error message:



Error: Error occurred while parsing your function triggers.

TypeError: require(...) is not a function
at Object.<anonymous> (A:Android Projectsbuy_storage_trybuyfunctionsindex.js:21:45)
at Module._compile (internal/modules/cjs/loader.js:688:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
at Module.load (internal/modules/cjs/loader.js:598:32)
at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
at Function.Module._load (internal/modules/cjs/loader.js:529:3)
at Module.require (internal/modules/cjs/loader.js:636:17)
at require (internal/modules/cjs/helpers.js:20:18)
at C:UsersitzpaAppDataRoamingnpmnode_modulesfirebase-toolslibtriggerParser.js:15:15
at Object.<anonymous> (C:UsersitzpaAppDataRoamingnpmnode_modulesfirebase-toolslibtriggerParser.js:53:3)


The code:



const functions = require('firebase-functions');
const cors = require('cors')({ origin: true });
const Busboy = require('busboy');
const os = require('os');
const path = require('path');
const fs = require('fs');
const fbAdmin = require('firebase-admin');
const uuid = require('uuid/v4');

// // Create and Deploy Your First Cloud Functions
// // https://firebase.google.com/docs/functions/write-firebase-functions
//
// exports.helloWorld = functions.https.onRequest((request, response) => {
// response.send("Hello from Firebase!");
// });
const gcconfig = {
projectId: '***',
keyFilename: '***.json'
};

const gcs = require('@google-cloud/storage')(gcconfig);

fbAdmin.initializeApp({
credential: fbAdmin.credential.cert(require('./***.json'))
});

exports.storeImage = functions.https.onRequest((req, res) => {
return cors(req, res, () => {
if (req.method !== 'POST') {
return res.status(500).json({ message: 'Not allowed.' });
}

if (
!req.headers.authorization ||
!req.headers.authorization.startsWith('Bearer ')
) {
return res.status(401).json({ error: 'Unauthorized.' });
}

let idToken;
idToken = req.headers.authorization.split('Bearer ')[1];

const busboy = new Busboy({ headers: req.headers });
let uploadData;
let oldImagePath;

busboy.on('file', (fieldname, file, filename, encoding, mimetype) => {
const filePath = path.join(os.tmpdir(), filename);
uploadData = { filePath: filePath, type: mimetype, name: filename };
file.pipe(fs.createWriteStream(filePath));
});

busboy.on('field', (fieldname, value) => {
oldImagePath = decodeURIComponent(value);
});

busboy.on('finish', () => {
const bucket = gcs.bucket('flutter-buy.appspot.com');
const id = uuid();
let imagePath = 'images/' + id + '-' + uploadData.name;
if (oldImagePath) {
imagePath = oldImagePath;
}

return fbAdmin
.auth()
.verifyIdToken(idToken)
.then(decodedToken => {
return bucket.upload(uploadData.filePath, {
uploadType: 'media',
destination: imagePath,
metadata: {
metadata: {
contentType: uploadData.type,
firebaseStorageDownloadTokens: id
}
}
});
})
.then(() => {
return res.status(201).json({
imageUrl:
'https://firebasestorage.googleapis.com/v0/b/' +
bucket.name +
'/o/' +
encodeURIComponent(imagePath) +
'?alt=media&token=' +
id,
imagePath: imagePath
});
})
.catch(error => {
return res.status(401).json({ error: 'Unauthorized!' });
});
});
return busboy.end(req.rawBody);
});
});






node.js firebase google-cloud-functions firebase-cli






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 23 '18 at 5:06









Doug Stevenson

73.9k984105




73.9k984105










asked Nov 22 '18 at 23:41









Adam CJAdam CJ

141




141













  • What version of @google/cloud-storage are you using, and what documentation are you using that suggests your code should be correct?

    – Doug Stevenson
    Nov 23 '18 at 5:07











  • @google-cloud/storage@2.3.1 I'm using a video tutorial by Maximilian Schwarzmüller

    – Adam CJ
    Nov 23 '18 at 22:23



















  • What version of @google/cloud-storage are you using, and what documentation are you using that suggests your code should be correct?

    – Doug Stevenson
    Nov 23 '18 at 5:07











  • @google-cloud/storage@2.3.1 I'm using a video tutorial by Maximilian Schwarzmüller

    – Adam CJ
    Nov 23 '18 at 22:23

















What version of @google/cloud-storage are you using, and what documentation are you using that suggests your code should be correct?

– Doug Stevenson
Nov 23 '18 at 5:07





What version of @google/cloud-storage are you using, and what documentation are you using that suggests your code should be correct?

– Doug Stevenson
Nov 23 '18 at 5:07













@google-cloud/storage@2.3.1 I'm using a video tutorial by Maximilian Schwarzmüller

– Adam CJ
Nov 23 '18 at 22:23





@google-cloud/storage@2.3.1 I'm using a video tutorial by Maximilian Schwarzmüller

– Adam CJ
Nov 23 '18 at 22:23












2 Answers
2






active

oldest

votes


















0














You're using a version of @google-cloud/storage greater then or equal to 2.0.0. The APIs changed in 2.0.0. The tutorial you're following is out of date and was probably written against 1.x.



Look at the documentation for the module. The way to initialize the SDK is like this:



// Imports the Google Cloud client library
const {Storage} = require('@google-cloud/storage');
// Creates a client
const storage = new Storage();
const bucket = storage.bucket();





share|improve this answer
























  • Thanks so much. was very helpful. Your solution is simple and easy to follow

    – Adam CJ
    Nov 24 '18 at 23:08



















0














Use this instead of gcconfig.
Should work just fine.



const projectId = 'your-project-id';
const keyFilename = 'your-keyfile.json';

const {
Storage
} = require('@google-cloud/storage');

const gcs = new Storage({
projectId: projectId,
keyFilename: keyFilename
});





share|improve this answer

























    Your Answer






    StackExchange.ifUsing("editor", function () {
    StackExchange.using("externalEditor", function () {
    StackExchange.using("snippets", function () {
    StackExchange.snippets.init();
    });
    });
    }, "code-snippets");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "1"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53439134%2fcant-deploy-firebase-cloud-function-for-flutter%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    You're using a version of @google-cloud/storage greater then or equal to 2.0.0. The APIs changed in 2.0.0. The tutorial you're following is out of date and was probably written against 1.x.



    Look at the documentation for the module. The way to initialize the SDK is like this:



    // Imports the Google Cloud client library
    const {Storage} = require('@google-cloud/storage');
    // Creates a client
    const storage = new Storage();
    const bucket = storage.bucket();





    share|improve this answer
























    • Thanks so much. was very helpful. Your solution is simple and easy to follow

      – Adam CJ
      Nov 24 '18 at 23:08
















    0














    You're using a version of @google-cloud/storage greater then or equal to 2.0.0. The APIs changed in 2.0.0. The tutorial you're following is out of date and was probably written against 1.x.



    Look at the documentation for the module. The way to initialize the SDK is like this:



    // Imports the Google Cloud client library
    const {Storage} = require('@google-cloud/storage');
    // Creates a client
    const storage = new Storage();
    const bucket = storage.bucket();





    share|improve this answer
























    • Thanks so much. was very helpful. Your solution is simple and easy to follow

      – Adam CJ
      Nov 24 '18 at 23:08














    0












    0








    0







    You're using a version of @google-cloud/storage greater then or equal to 2.0.0. The APIs changed in 2.0.0. The tutorial you're following is out of date and was probably written against 1.x.



    Look at the documentation for the module. The way to initialize the SDK is like this:



    // Imports the Google Cloud client library
    const {Storage} = require('@google-cloud/storage');
    // Creates a client
    const storage = new Storage();
    const bucket = storage.bucket();





    share|improve this answer













    You're using a version of @google-cloud/storage greater then or equal to 2.0.0. The APIs changed in 2.0.0. The tutorial you're following is out of date and was probably written against 1.x.



    Look at the documentation for the module. The way to initialize the SDK is like this:



    // Imports the Google Cloud client library
    const {Storage} = require('@google-cloud/storage');
    // Creates a client
    const storage = new Storage();
    const bucket = storage.bucket();






    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Nov 24 '18 at 9:19









    Doug StevensonDoug Stevenson

    73.9k984105




    73.9k984105













    • Thanks so much. was very helpful. Your solution is simple and easy to follow

      – Adam CJ
      Nov 24 '18 at 23:08



















    • Thanks so much. was very helpful. Your solution is simple and easy to follow

      – Adam CJ
      Nov 24 '18 at 23:08

















    Thanks so much. was very helpful. Your solution is simple and easy to follow

    – Adam CJ
    Nov 24 '18 at 23:08





    Thanks so much. was very helpful. Your solution is simple and easy to follow

    – Adam CJ
    Nov 24 '18 at 23:08













    0














    Use this instead of gcconfig.
    Should work just fine.



    const projectId = 'your-project-id';
    const keyFilename = 'your-keyfile.json';

    const {
    Storage
    } = require('@google-cloud/storage');

    const gcs = new Storage({
    projectId: projectId,
    keyFilename: keyFilename
    });





    share|improve this answer






























      0














      Use this instead of gcconfig.
      Should work just fine.



      const projectId = 'your-project-id';
      const keyFilename = 'your-keyfile.json';

      const {
      Storage
      } = require('@google-cloud/storage');

      const gcs = new Storage({
      projectId: projectId,
      keyFilename: keyFilename
      });





      share|improve this answer




























        0












        0








        0







        Use this instead of gcconfig.
        Should work just fine.



        const projectId = 'your-project-id';
        const keyFilename = 'your-keyfile.json';

        const {
        Storage
        } = require('@google-cloud/storage');

        const gcs = new Storage({
        projectId: projectId,
        keyFilename: keyFilename
        });





        share|improve this answer















        Use this instead of gcconfig.
        Should work just fine.



        const projectId = 'your-project-id';
        const keyFilename = 'your-keyfile.json';

        const {
        Storage
        } = require('@google-cloud/storage');

        const gcs = new Storage({
        projectId: projectId,
        keyFilename: keyFilename
        });






        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Dec 23 '18 at 10:18









        HMD

        1,80911522




        1,80911522










        answered Dec 23 '18 at 5:12









        Parveen SinghParveen Singh

        11




        11






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53439134%2fcant-deploy-firebase-cloud-function-for-flutter%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            404 Error Contact Form 7 ajax form submitting

            How to know if a Active Directory user can login interactively

            TypeError: fit_transform() missing 1 required positional argument: 'X'