<p>i am not really sure how to debug this error, as i'm on terminal i am sure of my project id and i already logged in with my gcloud. This is my error with -vdebug:</p>
<pre><code>INFO[0000] starting gRPC server on port 50051           
INFO[0000] starting gRPC HTTP server on port 50052      
INFO[0000] Skaffold &amp;{Version:v1.12.0 ConfigVersion:skaffold/v2beta5 GitVersion: GitCommit:e680a831292e1c7efc54e0c6d40544ae141e6354 GitTreeState:clean BuildDate:2020-07-04T21:01:46Z GoVersion:go1.14.4 Compiler:gc Platform:darwin/amd64} 
DEBU[0000] config version &quot;skaffold/v2alpha3&quot; out of date: upgrading to latest &quot;skaffold/v2beta5&quot; 
DEBU[0000] validating yamltags of struct SkaffoldConfig 
DEBU[0000] validating yamltags of struct Metadata       
DEBU[0000] validating yamltags of struct Pipeline       
DEBU[0000] validating yamltags of struct BuildConfig    
DEBU[0000] validating yamltags of struct Artifact       
DEBU[0000] validating yamltags of struct Sync           
DEBU[0000] validating yamltags of struct SyncRule       
DEBU[0000] validating yamltags of struct ArtifactType   
DEBU[0000] validating yamltags of struct DockerArtifact 
DEBU[0000] validating yamltags of struct Artifact       
DEBU[0000] validating yamltags of struct Sync           
DEBU[0000] validating yamltags of struct SyncRule       
DEBU[0000] validating yamltags of struct ArtifactType   
DEBU[0000] validating yamltags of struct DockerArtifact 
DEBU[0000] validating yamltags of struct TagPolicy      
DEBU[0000] validating yamltags of struct GitTagger      
DEBU[0000] validating yamltags of struct BuildType      
DEBU[0000] validating yamltags of struct GoogleCloudBuild 
DEBU[0000] validating yamltags of struct DeployConfig   
DEBU[0000] validating yamltags of struct DeployType     
DEBU[0000] validating yamltags of struct KubectlDeploy  
DEBU[0000] validating yamltags of struct KubectlFlags   
INFO[0000] Using kubectl context: gke_udemy-ticketing-dev-285506_asia-southeast2-b_udemy-ticketing-dev 
DEBU[0000] Using builder: google cloud                  
DEBU[0000] setting Docker user agent to skaffold-v1.12.0 
Listing files to watch...
 - us.gcr.io/udemy-ticketing-dev-285506/auth
DEBU[0000] Found dependencies for dockerfile: [{package.json /app true} {. /app true}] 
 - us.gcr.io/udemy-ticketing-dev-285506/client
DEBU[0000] Found dependencies for dockerfile: [{package.json /app true} {. /app true}] 
INFO[0000] List generated in 10.566014ms                
Generating tags...
 - us.gcr.io/udemy-ticketing-dev-285506/auth -&gt; DEBU[0000] Running command: [git describe --tags --always] 
DEBU[0000] Running command: [git describe --tags --always] 
DEBU[0000] unable to find git commit: running [git describe --tags --always]
 - stdout: &quot;&quot;
 - stderr: &quot;fatal: not a git repository (or any of the parent directories): .git\n&quot;
 - cause: exit status 128 
DEBU[0000] Using a fall-back tagger                     
us.gcr.io/udemy-ticketing-dev-285506/auth:latest
 - us.gcr.io/udemy-ticketing-dev-285506/client -&gt; DEBU[0000] unable to find git commit: running [git describe --tags --always]
 - stdout: &quot;&quot;
 - stderr: &quot;fatal: not a git repository (or any of the parent directories): .git\n&quot;
 - cause: exit status 128 
DEBU[0000] Using a fall-back tagger                     
us.gcr.io/udemy-ticketing-dev-285506/client:latest
Some taggers failed. Rerun with -vdebug for errors.
INFO[0000] Tags generated in 12.246278ms                
Checking cache...
DEBU[0000] Found dependencies for dockerfile: [{package.json /app true} {. /app true}] 
DEBU[0000] Found dependencies for dockerfile: [{package.json /app true} {. /app true}] 
 - us.gcr.io/udemy-ticketing-dev-285506/auth: Not found. Building
 - us.gcr.io/udemy-ticketing-dev-285506/client: Not found. Building
INFO[0000] Cache check complete in 3.771983ms           
Building [us.gcr.io/udemy-ticketing-dev-285506/auth]...
DEBU[0000] Running command: [gcloud auth print-access-token --format=json] 
DEBU[0000] Command output: [{
  &quot;token&quot;: &quot;ya29.a0AfH6SMAdyo9b5C6-LCXuF_ZHJbMse712NYXc_UUR7IQr2gXxxeRyn7t9zmucETasrRdExizDwlOMNXvB0H40I24qhmIgCAL3yocSjhTz1JhQ5cHqgbPrlMTVI0VTFHe9PBu0Fzqy7J6MVQ-CACRnWD2iMAjDFjwUDqbivbmhxek&quot;
}
] 
INFO[0000] unable to retrieve token: oauth2: token expired and refresh token is not set 
INFO[0000] falling back to application default credentials 

exiting dev mode because first build failed: couldn't build &quot;us.gcr.io/udemy-ticketing-dev-285506/auth&quot;: creating bucket if not exists: googleapi: Error 400: User project specified in the request is invalid., invalid
</code></pre>
<p>How can i get User project specified in the request is invalid when i am sure of my project id? in my terminal and skaffold.yaml, it's surely correct, it's hard to find solution for this, i'm stuck.</p>
<p>This is my skaffold.yaml:</p>
<pre><code>apiVersion: skaffold/v2alpha3
kind: Config
deploy:
  kubectl:
    manifests:
      - ./infra/k8s/*
build:
  googleCloudBuild:
    projectId: udemy-ticketing-dev-285506
  artifacts:
    - image: us.gcr.io/udemy-ticketing-dev-285506/auth
      context: auth
      docker:
        dockerfile: Dockerfile
      sync:
        manual:
          - src: &quot;src/**/*.ts&quot;
            dest: .
    - image: us.gcr.io/udemy-ticketing-dev-285506/client
      context: client
      docker:
        dockerfile: Dockerfile
      sync:
        manual:
          - src: &quot;**/*.js&quot;
            dest: .
</code></pre>

<p>so after lots of hours of digging i finally found the solution for me:</p>
<blockquote>
<p>gcloud auth application-default login</p>
</blockquote>
<p>what weirded me out is that i already logged with:</p>
<blockquote>
<p>gcloud auth login</p>
</blockquote>
