gpt4 book ai didi

amazon-web-services - API 网关 : Mixing of REST APIs and HTTP APIs on the same domain name can only be accomplished through API Gateway's V2 DomainName interface error

转载 作者:行者123 更新时间:2023-12-05 02:43:31 24 4
gpt4 key购买 nike

我已经使用“HTTP API”创建了一个示例 API 网关。

然后我添加一个自定义域并将相关的 CNAME 记录添加到 DNS。

然后我继续配置 API 映射,以添加 HTTP API,但我收到以下错误消息:

Mixing of REST APIs and HTTP APIs on the same domain name can only be accomplished through API Gateway's V2 DomainName interface. Currently, WebSocket APIs can only be attached to a domain name with other WebSocket APIs. This must also occur through API Gateway's V2 DomainName interface.

请注意,添加正常的“REST API”工作正常。

到底是什么问题,我该如何解决?

请注意,我已经删除了所有自定义域,并重新添加了这个域,但它仍然不起作用..

Error message

最佳答案

我收到第二条错误消息,这可能解释了原因:
enter image description here

错误消息说:“这些 API 类型可能只与区域域名相关联”:这意味着 HTTP API 只能与区域自定义域相关联,因此 EDGE 不是(希望yet) 支持 EDGE 自定义域。
您只能选择使用 REST API,以便将其与 EDGE 自定义域相关联,或者在多个 AWS 区域中创建多个 HTTP API 部署并使用 Route53(或您自己的 DNS 提供商)映射每个区域部署终端节点采用低延迟策略。

关于amazon-web-services - API 网关 : Mixing of REST APIs and HTTP APIs on the same domain name can only be accomplished through API Gateway's V2 DomainName interface error,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66892050/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com