我正在尝试将应用程序的HTTP请求配置为要重定向到外部服务的URL。但是我收到一个未知的主机错误。
在我的应用程序中,我将网址配置为:
https://httpbin.external/uuid
我具有以下虚拟服务和服务条目配置
---
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: httpbin
spec:
hosts:
- "httpbin.external"
http:
- route:
- destination:
host: httpbin.org
port:
number: 443
---
apiVersion: networking.istio.io/v1alpha3
kind: ServiceEntry
metadata:
name: httpbin
spec:
hosts:
- "httpbin.org"
ports:
- number: 443
name: https
protocol: HTTPS
- number: 80
name: http
protocol: HTTP
resolution: DNS
location: MESH_EXTERNAL
我遇到以下错误:
GET请求“ I am using this overload function for Expression.call”的I / O错误: httpbin.external;嵌套的异常是java.net.UnknownHostException: httpbin.external