error : domain is already mapped to a project in google cloud platform

前端 未结 3 845
天命终不由人
天命终不由人 2020-12-13 10:13

i am having issue with mapping domain in google cloud platform so i have just verified my domain but then i am having this issue

but the thing is that i have not a

3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-13 10:51

    As of 2018, the command line requests alone didn't work for me. What worked for me were these instructions from the Google Group here. In short,

    1. Head over to the API Explorer.

    2. Fill out the form in this format below:

    3. Make sure you Enable OAuth and execute the request.

    4. If successful, you'll see a response like this below:

      200
      
      - Show headers -
      
      {
       "name": "apps/example/operations/abcde-efgh-ijkl-mnop
       "metadata": {
        "@type": "type.googleapis.com/google.appengine.v1.OperationMetadataV1",
        "method": "google.appengine.v1.DomainMappings.CreateDomainMapping",
        "insertTime": "2018-03-16T03:44:49.167Z",
        "user": "you@example.com",
        "target": "apps/example/domainMappings/example.com"
       }
      }
      

      Important note: You need to run this request TWICE - Once for your domain without www (example.com). And once with www (www.example.com). I missed this step and my app stop serving www.example.com.

    5. To (re)-enable SSL support: Go back to your cloud console and then AppEngine domain settings and click the "Enable Managed Security" button as shown below:

    6. If it still doesn't work, you can delete the domain from your console and re-add it through the command line using the command below:

      gcloud beta app domain-mappings create 
      

      Keep in mind, the above command will only work once you've run the request through the API explorer.

    Hope this helps.

    Cheers.

提交回复
热议问题