【发布时间】:2019-12-25 15:31:31
【问题描述】:
端口被添加到下游 url。我想访问托管在 heroku 中的微服务。需要避开港口。 请帮忙。
它在本地开发环境中工作。但在 Heroku 中部署后无法正常工作。
{
"ReRoutes": [
{
"DownstreamPathTemplate": "/api/{catchAll}",
"DownstreamScheme": "https",
"DownstreamHostAndPorts": [
{
"Host": "catalogapi-pinaki.herokuapp.com"
}
],
"UpstreamPathTemplate": "/cat-logApi/{catchAll}"
}
],
"GlobalConfiguration": {
"BaseUrl": "http://localhost"
}
}
下游 URL 应为“https://catalogapi-pinaki.herokuapp.com/api/CatalogApi/GetAllItems”。
错误: message: 下游 url 为https://catalogapi-pinaki.herokuapp.com:56084/api/CatalogApi/GetAllItems
【问题讨论】: