I have encountered an issue when attempting to enable the Compute Engine API. Even though I have attached a billing account to the project, the process gets stuck and displays an unknown error message. This is my first time trying to enable the Compute Engine API in this account. My account is currently on a free trial and was recently created. The error message in full is: "There was an unknown error when attempting to enable the API. Please try again or return later". I have been facing this issue for several days.
I want to enable the compute engine API for work or practices. But this error is happening please someone give me a solution to it.
It seems to be a temporary GCP Console issue, so you can try to bypass it either via clearing cache/logging into fresh incognito session in your browser, or using gcloud CLI to enable the Compute API. You can do that right via GCP Cloud Shell, using the following command: gcloud services enable compute.googleapis.com --project=<your_project_id>
Thank you for your advice @yrhsk I also tried using the CLI, clearing the cache/logging of my browser, and switching to a different browser, but the error persists.