Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Node appengine deploy (gcloud.app.deploy) Error Response: [4] Timed out fetching pod.

Hello everyone, I'm facing the following error when I try to deploy my api through the google app engine:

```

Updating service [default]...

(gcloud.app.deploy) Error Response: [4] Timed out fetching pod.

ERROR: (gcloud.app.deploy) Error Response: [4] Timed out fetching pod.

gcloud deploy command process with PID 25424 was closed with code 1

```

and this error is after waiting for a long time...

however, if I make an app.yaml of 'env:flex' this error does not occur, but I just want 'standard' so as not to spend all the time.


my app.yaml

```

runtime: nodejs18
env: standard
instance_class: F1
automatic_scaling:
  max_instances: 1
env_variables:
  GITHUB_TOKEN: github_p
  LOCATION: GCLOUD

```
the config.json:
```

 "main": "app.js",
  "type": "module",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1",
    "start": "node app.js",
    "build": "",
    "gcp-build": ""
  },
  "author": "Bruno Rafael Lucena da Silva",
  "license": "MIT",
  "devDependencies": {
    "eslint": "^8.57.0",
    "eslint-config-airbnb-base": "^15.0.0",
    "eslint-plugin-import": "^2.29.1"
  },
  "dependencies": {
    "dotenv": "^16.4.5",
    "express": "^4.19.2"
  }
}


```


0 3 415
3 REPLIES 3

You mentioned config.json.

Did you mean "package.json"? If you didn't, do you have a package.json file? The documentation says

You specify the dependencies for your Node.js app by declaring them in the package.json file.

 

 

    ......NoCommandLine ......
https://nocommandline.com
        Analytics & GUI for 
App Engine & Datastore Emulator

It was just a typo, while I was on my way to work, I ask you to ignore it.I correctly created package.json

Try including an engines attribute in it

"engines": {
   "node": ">=18.0.0"
}

   ......NoCommandLine ......
https://nocommandline.com
        Analytics & GUI for 
App Engine & Datastore Emulator