Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Firebase Functions deploy requires keyboard input in GCP #3108

Closed
krottv opened this issue Feb 5, 2021 · 2 comments
Closed

Firebase Functions deploy requires keyboard input in GCP #3108

krottv opened this issue Feb 5, 2021 · 2 comments

Comments

@krottv
Copy link

krottv commented Feb 5, 2021

Environment

firebase-tools: Firebase CLI 9.3.0 (latest)

Platform: macOS bigSur 11.2

NodeJs Tried 10, 12, 14

Test case

Steps to reproduce

I created a simple function from firebase documentation

const functions = require("firebase-functions");
// The Firebase Admin SDK to access Firestore.
const admin = require('firebase-admin');
admin.initializeApp();

// Take the text parameter passed to this HTTP endpoint and insert it into
// Firestore under the path /messages/:documentId/original
exports.addMessage = functions.https.onRequest(async (req, res) => {
  // Grab the text parameter.
  const original = req.query.text;
  // Push the new message into Firestore using the Firebase Admin SDK.
  const writeResult = await admin.firestore().collection('messages').add({original: original});
  // Send back a message that we've successfully written the message
  res.json({result: `Message with ID: ${writeResult.id} added.`});
});

deployed it - firebase deploy --only functions:

Expected behavior

Upload it without exception

Actual behavior

Deployment error.
Build failed: Build error details not available. Please check the logs at xxx

Where I have a message

replace /workspace/.runtimeconfig.json? [y]es, [n]o, [A]ll, [N]one, [r]ename: NULL
(EOF or read error, treating as "[N]one" ...)

Also it is related to issue from stackoverflow with no solution - https://stackoverflow.com/questions/65950774/firebase-functions-deploy-requires-keyboard-input-in-gcp

@google-oss-bot
Copy link
Contributor

This issue does not seem to follow the issue template. Make sure you provide all the required information.

@taeold
Copy link
Contributor

taeold commented Feb 11, 2021

Thanks for reporting @krottv. We'll track this bug in #3120 instead.

@taeold taeold closed this as completed Feb 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants