错误:域已被映射到Google云平台中的项目 [英] error : domain is already mapped to a project in google cloud platform

查看:246
本文介绍了错误:域已被映射到Google云平台中的项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Google云端平台中存在映射域的问题,因此我刚刚验证了我的域名,但后来发现此问题



但事情是我还没有将我的域名添加到我的项目中,如下图所示





所以我没有添加w3youtube.com来映射或创建任何DNS记录,但仍然有 www.w3youtube.com已映射到项目。



。总之,


  1. 转到


  2. 确保启用OAuth和执行请求。


  3. 如果成功,您会看到下面的回复:

     200 

    - 显示标题 -

    {
    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
    }
    }

    重要说明:您需要运行此请求TWICE - 一次为您的域没有www(example.com)。一旦与www(www.example.com)。我错过了这一步,并且我的应用程序不再为www.example.com提供服务。

  4. $支持(重新)启用SSL支持: b $ b回到您的云端控制台,然后点击AppEngine域名设置,然后点击启用托管安全性按钮,如下所示:


  5. 如果它仍然不起作用,您可以从您的控制台删除该域,并使用以下命令通过命令行重新添加它:

      gcloud beta app域名映射创建<域名> 

    请记住,只有通过API资源管理器运行请求后,上述命令才会生效。


希望这有助于您。
$ b 干杯 p>

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 added my domain to my project yet as you can see below in picture

so i have not added "w3youtube.com" to mapping or created any dns records but still i am having www.w3youtube.com is already mapped to a project.

what should i do? in order to remove mappings or to resolve this issue?

解决方案

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 <domain name>
    

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

Hope this helps.

Cheers.

这篇关于错误:域已被映射到Google云平台中的项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆