简体   繁体   中英

ERROR: (gcloud.app.deploy) Error Response: [12] Connecting to an external network is not enabled for this project

I put the app.yaml under parse-community and exec gcloud app deploy .

I encountered a error same of this title.

this is my app.yaml

service: some-service
runtime: nodejs8
network:
  name: some-network

I checked the corresponding data of stackdriver logging, but I did not see any errors that were particularly relevant.

But the service some-service exists in GAE services list on GCP Console.

I could access the service's endpoint url https://**appspot** .

I need to remove the error when deploying.

The app.yaml's network element is only available for the App Engine flexible environment (see doc here ). As per your app.yaml file, you're trying to deploy your app to the Standard environment.

To deploy on flex, you should update your app.yaml like this:

service: some-service
runtime: nodejs8
env: flex
network:
  name: some-network

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM