You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to create a new flutter/firebase project using the command "flutterfire configure"
I am getting the following error message:
"Failed to create project because there is already a project with ID project-network-new. Please try again with a unique project ID."
I tried several project names and it still doesn't work. Looking into the debug file it seems like the requests are done twice, which could explain a fail after the second attempt since the project name would already have been taken after the first attempt. But I looked into https://console.firebase.google.com/ and there was no project to be found for my account (ionfintescu@gmail.com)
Here is the firebase-debug.log:
[debug] [2025-01-12T09:51:59.827Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
[debug] [2025-01-12T09:51:59.828Z] > authorizing via signed-in user (ionfintescu@gmail.com)
[debug] [2025-01-12T09:51:59.830Z] Checked if tokens are valid: true, expires at: 1736677518503
[debug] [2025-01-12T09:51:59.831Z] Checked if tokens are valid: true, expires at: 1736677518503
[debug] [2025-01-12T09:51:59.832Z] >>> [apiv2][query] POST https://cloudresourcemanager.googleapis.com/v1/projects [none]
[debug] [2025-01-12T09:51:59.832Z] >>> [apiv2][body] POST https://cloudresourcemanager.googleapis.com/v1/projects {"projectId":"project-network-new","name":"project-network-new"}
[debug] [2025-01-12T09:52:00.934Z] <<< [apiv2][status] POST https://cloudresourcemanager.googleapis.com/v1/projects 409
[debug] [2025-01-12T09:52:00.934Z] <<< [apiv2][body] POST https://cloudresourcemanager.googleapis.com/v1/projects {"error":{"code":409,"message":"Requested entity already exists","status":"ALREADY_EXISTS"}}
[debug] [2025-01-12T09:52:01.051Z] FirebaseError: Request to https://cloudresourcemanager.googleapis.com/v1/projects had HTTP Error: 409, Requested entity already exists
at responseToError (C:\Users\Ion\AppData\Roaming\npm\node_modules\firebase-tools\lib\responseToError.js:52:12)
at RetryOperation._fn (C:\Users\Ion\AppData\Roaming\npm\node_modules\firebase-tools\lib\apiv2.js:312:77)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
[error]
[error] Error: Failed to create project because there is already a project with ID project-network-new. Please try again with a unique project ID.
Then I also tried to create the project using the command "firebase projects:create ...." and it still failed.
According to the firebase-debug.log I do not have permission.
Is there an existing issue for this?
Which plugins are affected?
Other
Which platforms are affected?
No response
Description
I am trying to create a new flutter/firebase project using the command "flutterfire configure"
I am getting the following error message:
"Failed to create project because there is already a project with ID project-network-new. Please try again with a unique project ID."
I tried several project names and it still doesn't work. Looking into the debug file it seems like the requests are done twice, which could explain a fail after the second attempt since the project name would already have been taken after the first attempt. But I looked into https://console.firebase.google.com/ and there was no project to be found for my account (ionfintescu@gmail.com)
Here is the firebase-debug.log:
[debug] [2025-01-12T09:51:59.827Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
[debug] [2025-01-12T09:51:59.828Z] > authorizing via signed-in user (ionfintescu@gmail.com)
[debug] [2025-01-12T09:51:59.830Z] Checked if tokens are valid: true, expires at: 1736677518503
[debug] [2025-01-12T09:51:59.831Z] Checked if tokens are valid: true, expires at: 1736677518503
[debug] [2025-01-12T09:51:59.832Z] >>> [apiv2][query] POST https://cloudresourcemanager.googleapis.com/v1/projects [none]
[debug] [2025-01-12T09:51:59.832Z] >>> [apiv2][body] POST https://cloudresourcemanager.googleapis.com/v1/projects {"projectId":"project-network-new","name":"project-network-new"}
[debug] [2025-01-12T09:52:00.934Z] <<< [apiv2][status] POST https://cloudresourcemanager.googleapis.com/v1/projects 409
[debug] [2025-01-12T09:52:00.934Z] <<< [apiv2][body] POST https://cloudresourcemanager.googleapis.com/v1/projects {"error":{"code":409,"message":"Requested entity already exists","status":"ALREADY_EXISTS"}}
[debug] [2025-01-12T09:52:01.051Z] FirebaseError: Request to https://cloudresourcemanager.googleapis.com/v1/projects had HTTP Error: 409, Requested entity already exists
at responseToError (C:\Users\Ion\AppData\Roaming\npm\node_modules\firebase-tools\lib\responseToError.js:52:12)
at RetryOperation._fn (C:\Users\Ion\AppData\Roaming\npm\node_modules\firebase-tools\lib\apiv2.js:312:77)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
[error]
[error] Error: Failed to create project because there is already a project with ID project-network-new. Please try again with a unique project ID.
Then I also tried to create the project using the command "firebase projects:create ...." and it still failed.
According to the firebase-debug.log I do not have permission.
Here is the firebase-debug.log:
[debug] [2025-01-12T10:04:31.048Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
[debug] [2025-01-12T10:04:31.049Z] > authorizing via signed-in user (ionfintescu@gmail.com)
[debug] [2025-01-12T10:04:38.076Z] Checked if tokens are valid: true, expires at: 1736677518503
[debug] [2025-01-12T10:04:38.077Z] Checked if tokens are valid: true, expires at: 1736677518503
[debug] [2025-01-12T10:04:38.078Z] >>> [apiv2][query] POST https://cloudresourcemanager.googleapis.com/v1/projects [none]
[debug] [2025-01-12T10:04:38.079Z] >>> [apiv2][body] POST https://cloudresourcemanager.googleapis.com/v1/projects {"projectId":"project-network-new2","name":"project-network-new2"}
[debug] [2025-01-12T10:04:39.109Z] <<< [apiv2][status] POST https://cloudresourcemanager.googleapis.com/v1/projects 200
[debug] [2025-01-12T10:04:39.109Z] <<< [apiv2][body] POST https://cloudresourcemanager.googleapis.com/v1/projects {"name":"operations/cp.8073184260479737807"}
[debug] [2025-01-12T10:04:39.110Z] Checked if tokens are valid: true, expires at: 1736677518503
[debug] [2025-01-12T10:04:39.110Z] Checked if tokens are valid: true, expires at: 1736677518503
[debug] [2025-01-12T10:04:39.110Z] >>> [apiv2][query] GET https://cloudresourcemanager.googleapis.com/v1/operations/cp.8073184260479737807 [none]
[debug] [2025-01-12T10:04:39.991Z] <<< [apiv2][status] GET https://cloudresourcemanager.googleapis.com/v1/operations/cp.8073184260479737807 200
[debug] [2025-01-12T10:04:39.991Z] <<< [apiv2][body] GET https://cloudresourcemanager.googleapis.com/v1/operations/cp.8073184260479737807 {"name":"operations/cp.8073184260479737807"}
[debug] [2025-01-12T10:04:40.502Z] [Project Creation Poller] Retrying task index 0
[debug] [2025-01-12T10:04:40.504Z] Checked if tokens are valid: true, expires at: 1736677518503
[debug] [2025-01-12T10:04:40.504Z] Checked if tokens are valid: true, expires at: 1736677518503
[debug] [2025-01-12T10:04:40.504Z] >>> [apiv2][query] GET https://cloudresourcemanager.googleapis.com/v1/operations/cp.8073184260479737807 [none]
[debug] [2025-01-12T10:04:40.828Z] <<< [apiv2][status] GET https://cloudresourcemanager.googleapis.com/v1/operations/cp.8073184260479737807 200
[debug] [2025-01-12T10:04:40.828Z] <<< [apiv2][body] GET https://cloudresourcemanager.googleapis.com/v1/operations/cp.8073184260479737807 {"name":"operations/cp.8073184260479737807"}
[debug] [2025-01-12T10:04:41.835Z] [Project Creation Poller] Retrying task index 0
[debug] [2025-01-12T10:04:41.836Z] Checked if tokens are valid: true, expires at: 1736677518503
[debug] [2025-01-12T10:04:41.837Z] Checked if tokens are valid: true, expires at: 1736677518503
[debug] [2025-01-12T10:04:41.837Z] >>> [apiv2][query] GET https://cloudresourcemanager.googleapis.com/v1/operations/cp.8073184260479737807 [none]
[debug] [2025-01-12T10:04:42.180Z] <<< [apiv2][status] GET https://cloudresourcemanager.googleapis.com/v1/operations/cp.8073184260479737807 200
[debug] [2025-01-12T10:04:42.180Z] <<< [apiv2][body] GET https://cloudresourcemanager.googleapis.com/v1/operations/cp.8073184260479737807 {"name":"operations/cp.8073184260479737807","metadata":{"@type":"type.googleapis.com/google.cloudresourcemanager.v1.ProjectCreationStatus","gettable":true}}
[debug] [2025-01-12T10:04:44.184Z] [Project Creation Poller] Retrying task index 0
[debug] [2025-01-12T10:04:44.185Z] Checked if tokens are valid: true, expires at: 1736677518503
[debug] [2025-01-12T10:04:44.185Z] Checked if tokens are valid: true, expires at: 1736677518503
[debug] [2025-01-12T10:04:44.185Z] >>> [apiv2][query] GET https://cloudresourcemanager.googleapis.com/v1/operations/cp.8073184260479737807 [none]
[debug] [2025-01-12T10:04:44.537Z] <<< [apiv2][status] GET https://cloudresourcemanager.googleapis.com/v1/operations/cp.8073184260479737807 200
[debug] [2025-01-12T10:04:44.537Z] <<< [apiv2][body] GET https://cloudresourcemanager.googleapis.com/v1/operations/cp.8073184260479737807 {"name":"operations/cp.8073184260479737807","metadata":{"@type":"type.googleapis.com/google.cloudresourcemanager.v1.ProjectCreationStatus","gettable":true,"ready":true},"done":true,"response":{"@type":"type.googleapis.com/google.cloudresourcemanager.v1.Project","projectNumber":"897163563423","projectId":"project-network-new2","lifecycleState":"ACTIVE","name":"project-network-new2","createTime":"2025-01-12T10:04:39.609811Z"}}
[debug] [2025-01-12T10:04:44.538Z] Checked if tokens are valid: true, expires at: 1736677518503
[debug] [2025-01-12T10:04:44.538Z] Checked if tokens are valid: true, expires at: 1736677518503
[debug] [2025-01-12T10:04:44.538Z] >>> [apiv2][query] POST https://firebase.googleapis.com/v1beta1/projects/project-network-new2:addFirebase [none]
[debug] [2025-01-12T10:04:45.761Z] <<< [apiv2][status] POST https://firebase.googleapis.com/v1beta1/projects/project-network-new2:addFirebase 403
[debug] [2025-01-12T10:04:45.762Z] <<< [apiv2][body] POST https://firebase.googleapis.com/v1beta1/projects/project-network-new2:addFirebase {"error":{"code":403,"message":"The caller does not have permission","status":"PERMISSION_DENIED"}}
[debug] [2025-01-12T10:04:45.762Z] Request to https://firebase.googleapis.com/v1beta1/projects/project-network-new2:addFirebase had HTTP Error: 403, The caller does not have permission
[debug] [2025-01-12T10:04:45.977Z] FirebaseError: Request to https://firebase.googleapis.com/v1beta1/projects/project-network-new2:addFirebase had HTTP Error: 403, The caller does not have permission
at responseToError (C:\Users\Ion\AppData\Roaming\npm\node_modules\firebase-tools\lib\responseToError.js:52:12)
at RetryOperation._fn (C:\Users\Ion\AppData\Roaming\npm\node_modules\firebase-tools\lib\apiv2.js:312:77)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
[error]
[error] Error: Failed to add Firebase to Google Cloud Platform project. See firebase-debug.log for more info.
Thanks for your help!
Reproducing the issue
steps provided above
Firebase Core version
Firebase 13.29.1
Flutter Version
3.27.1
Relevant Log Output
Flutter dependencies
Expand
Flutter dependencies
snippetReplace this line with the contents of your `flutter pub deps -- --style=compact`.
Additional context and comments
No response
The text was updated successfully, but these errors were encountered: