I am very much new to GCP & Node JS, recently I started working on a cloud function development in Nodejs.
I researched many websites to begin my development so don't know which step I followed but somehow I am able to develop a simple Nodejs project that connects to Google BigQuery to execute some SQL statement on my local machine in VSCode IDE.
At first, as it was giving some error while connecting to GCP, I found a few solutions like configuring the project in Google Cloud Shell to authenticate it.
Everything went smoothly and my code connected to BigQuery successfully. Some days later I shutdown a new project I created on GCP Console, then tried to execute my local code which worked perfectly earlier. It is now throwing an error as soon as it tries to connect to BigQuery part of the code.
Error is:
Uncaught ApiError Error: Project project-X has been deleted.
I tried to config new project using the command:
gcloud config set project myProject-XYZ
output is: Updated property [core/project].
Then again I tried to run my code in VS Code, but the problem still persists. Not sure where to set a new project or remove reference to the old/shutdown project.
I am expecting some guidance in order to understand this development.