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

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

问题描述

我在谷歌云平台映射域时遇到问题,所以我刚刚验证了我的域,但后来我遇到了这个问题

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

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

我该怎么办?为了删除映射或解决此问题?

解决方案

截至 2018 年,仅命令行请求对我不起作用.对我有用的是来自 Google Group

  • 确保启用 OAuth 并执行请求.

  • 如果成功,您将看到如下响应:

    200- 显示标题 -{名称":应用程序/示例/操作/abcde-efgh-ijkl-mnop元数据":{"@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",目标":apps/example/domainMappings/example.com"}}

    重要说明:您需要两次运行此请求 - 一次是针对您的没有 www 的域 (example.com).还有一次使用 www (www.example.com).我错过了这一步,我的应用停止为 www.example.com 提供服务.

  • (重新)启用 SSL 支持:返回您的云控制台,然后是 AppEngine 域设置,然后单击启用托管安全"按钮,如下所示:

  • 如果仍然无效,您可以从控制台中删除域,然后使用以下命令通过命令行重新添加域:

    gcloud beta app domain-mappings create 

    请记住,上述命令仅在您通过 API 资源管理器运行请求后才有效.

  • 希望这会有所帮助.

    干杯.

    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.

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

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