apphosting:backends:create
fails when gcp project isn't attached to firebase yet
#8405
Labels
apphosting:backends:create
fails when gcp project isn't attached to firebase yet
#8405
Should we add a message prompting the user to run firebase projects:addfirebase? Or maybe skip adding the web app
i === Set up your backend
? Provide a name for your backend [1-30 characters] my-web-app
[2025-04-03T19:59:46.804Z] Checked if tokens are valid: true, expires at: 1743713671259
[2025-04-03T19:59:46.804Z] Checked if tokens are valid: true, expires at: 1743713671259
[2025-04-03T19:59:46.804Z] >>> [apiv2][query] GET https://firebaseapphosting.googleapis.com/v1beta/projects/global-deny/locations/us-central1/backends/my-web-app [none]
[2025-04-03T19:59:46.934Z] <<< [apiv2][status] GET https://firebaseapphosting.googleapis.com/v1beta/projects/global-deny/locations/us-central1/backends/my-web-app 404
[2025-04-03T19:59:46.934Z] <<< [apiv2][body] GET https://firebaseapphosting.googleapis.com/v1beta/projects/global-deny/locations/us-central1/backends/my-web-app {"error":{"code":404,"message":"Resource 'projects/global-deny/locations/us-central1/backends/my-web-app' was not found","status":"NOT_FOUND","details":[{"@type":"type.googleapis.com/google.rpc.DebugInfo","stackEntries":["cloud/control2/shared/userfriendly/userfriendly.go:1185 +0x25...
[2025-04-03T19:59:46.935Z] Checked if tokens are valid: true, expires at: 1743713671259
[2025-04-03T19:59:46.935Z] Checked if tokens are valid: true, expires at: 1743713671259
[2025-04-03T19:59:46.935Z] >>> [apiv2][query] GET https://firebase.googleapis.com/v1beta1/projects/global-deny/webApps pageSize=100
[2025-04-03T19:59:47.022Z] <<< [apiv2][status] GET https://firebase.googleapis.com/v1beta1/projects/global-deny/webApps 404
[2025-04-03T19:59:47.022Z] <<< [apiv2][body] GET https://firebase.googleapis.com/v1beta1/projects/global-deny/webApps {"error":{"code":404,"message":"Firebase project 947371497639 not found.","status":"NOT_FOUND","details":[{"@type":"type.googleapis.com/google.rpc.DebugInfo","detail":"4"}]}}
[2025-04-03T19:59:47.022Z] Request to https://firebase.googleapis.com/v1beta1/projects/global-deny/webApps?pageSize=100 had HTTP Error: 404, Firebase project 947371497639 not found.
[2025-04-03T19:59:47.023Z] Using Google Analytics in DEBUG mode. Emulators (+ UI) events will be shown in GA Debug View only.
[2025-04-03T19:59:47.055Z] FirebaseError: Request to https://firebase.googleapis.com/v1beta1/projects/global-deny/webApps?pageSize=100 had HTTP Error: 404, Firebase project 947371497639 not found.
at responseToError (/usr/local/google/home/kianam/firebase-tools/lib/responseToError.js:52:12)
at RetryOperation._fn (/usr/local/google/home/kianam/firebase-tools/lib/apiv2.js:312:77)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Error: Failed to list Firebase WEB apps. See firebase-debug.log for more info.
"Should we add a message prompting the user to run firebase projects:addfirebase?"
"But I think we should possibly also ask the user if they want to proceed without a web app? If they don't want to accept firebase TOS"
"at the moment users don't really have a choice, a web app is created along with their backend, and so they are accepting the Firebase TOS. Also without the web app they wouldn't get some features"
The text was updated successfully, but these errors were encountered: