Open amroczeK opened 2 years ago
Hey @amroczeK I have raised a PR for this. Review that!
Hey @amroczeK I have raised a PR for this. Review that!
Sorry PR isn't the solution.
Using the original docker-compose.yml, the proxy container is receiving the request but it is not being forwarded to the container with the route.
demoproxy | dbug: DemoProxy.Middleware.HttpInspectorMiddleware[0]
demoproxy | Http Request Information:
demoproxy | Schema: http
demoproxy | Host: localhost:5000
demoproxy | Path: /api/addresses
demoproxy | QueryString:
demoproxy | Headers:
demoproxy | Connection: keep-alive
demoproxy | Accept: */*
demoproxy | Accept-Encoding: gzip, deflate, br
demoproxy | Host: localhost:5000
demoproxy | User-Agent: PostmanRuntime/7.28.4
demoproxy | Postman-Token: cbec6964-44c1-4a45-b818-93625e59fba4
https://github.com/cecilphillip/yarp-samples/blob/87c9d51ab3dbb40a8fc9e05ddf4b0eef824b4617/src/ApiProxySamples/docker-compose.yml#L12
Were you able to successfully send requests to the YARP docker container?
Every time I send a request to http://localhost:5000/api/addresses which is the port YARP is bound to, I get 404 not found.
But when I send a request to http://localhost:5002/api/addresses which is the address and port the Addresses API application is bound to for container, results are returned.