Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running YARP in Docker Container #6

Open
amroczeK opened this issue Jan 17, 2022 · 2 comments
Open

Running YARP in Docker Container #6

amroczeK opened this issue Jan 17, 2022 · 2 comments

Comments

@amroczeK
Copy link

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.

@NaincyKumariKnoldus
Copy link

Hey @amroczeK I have raised a PR for this. Review that!

@amroczeK
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants