TypeError: Failed to execute 'fetch' on 'Window': Failed to parse URL
TypeError: Failed to execute 'fetch' on 'Window': Failed to parse URL
我正在使用 MMLib.SwaggerForOcelot 作为网关。在 .Net 核心中
我遇到了这个错误。有什么想法吗?
我的上游和下游:
"SwaggerEndPoints": [
{
"Key": "skIndustry",
"Config": [
{
"Name": "Industry API",
"Version": "v1",
"Url": "http://industryapi:80/swagger/v1/swagger.json"
}
]
}
]
我的重新路由:
"ReRoutes": [
{
"DownstreamPathTemplate": "/{everything}",
"DownstreamScheme": "http",
"DownstreamHostAndPorts": [
{
"Host": "industryapi/",
"Port": 80
}
],
"UpstreamPathTemplate": "/Industry/{everything}",
"UpstreamHttpMethod": [ "POST", "PUT", "GET" ],
"SwaggerKey": "skIndustry"
}
]
谢谢,
克鲁斯.
请尝试新版本1.3.1.
我正在使用 MMLib.SwaggerForOcelot 作为网关。在 .Net 核心中
我遇到了这个错误。有什么想法吗?
我的上游和下游:
"SwaggerEndPoints": [
{
"Key": "skIndustry",
"Config": [
{
"Name": "Industry API",
"Version": "v1",
"Url": "http://industryapi:80/swagger/v1/swagger.json"
}
]
}
]
我的重新路由:
"ReRoutes": [
{
"DownstreamPathTemplate": "/{everything}",
"DownstreamScheme": "http",
"DownstreamHostAndPorts": [
{
"Host": "industryapi/",
"Port": 80
}
],
"UpstreamPathTemplate": "/Industry/{everything}",
"UpstreamHttpMethod": [ "POST", "PUT", "GET" ],
"SwaggerKey": "skIndustry"
}
]
谢谢, 克鲁斯.
请尝试新版本1.3.1.