[Docker] Why 404 NotFound error in Ocelot gateway? #1829
-
hello, error is 404 not found where my DownstreamPathTemplate is working fine my routes is : {
"UpstreamPathTemplate": "/hr/employee/{id}/family",
"UpstreamHttpMethod": [ "GET" ],
"DownstreamPathTemplate": "/api/employee/family/{id}/getAllByEmployeeId",
"DownstreamScheme": "http",
"RouteIsCaseSensitive": false,
"DownstreamHostAndPorts": [
{
"Host": "43.251.72.44",
"Port": 8092
}
]
}, I am not able to find the actual problem... please help me. thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Attach your log for this 404 problem!!! It is hard to say based on route config only 😄 I see that direct connections are OK. Also, your repos are empty! Usually we don't serve ghosts! |
Beta Was this translation helpful? Give feedback.
Attach your log for this 404 problem!!! It is hard to say based on route config only 😄 I see that direct connections are OK.
It could be a Docker problem if you use Docker environment... You use the same host but ports are different.
It could be Docker network DNS problem...
Do you use Docker to host gateway and downstream service apps?
Also, your repos are empty! Usually we don't serve ghosts!
First, fork Ocelot repo and start contributing!