-
-
Notifications
You must be signed in to change notification settings - Fork 589
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
ReverseProxyPlugin
doesn't return a response to the client
#1433
Comments
@eaftan Thank you very much for reporting this. In last release, I pushed a bug while adding support for dynamic routes. I went to trace back the changes and looks like I even modified tests to make it work thinking change was just a side effect of changing httpbin to httpbingo 🤦♂️ |
Looks into the tests a bit further, looks like there is an issue with httpbingo (just like httpbin) when using from GitHub workflows. I'll investigate into tests later, but for now reverse proxy with static routes must work fine. I'll make a new release early coming week. |
Thank you! 🙏 |
Hello, @abhinavsingh! To ReproduceSteps to reproduce the behavior: Install in a new virtual environment proxy.py==2.4.7 Proxy (I've shortened the error tracing a bit)
Curl
Version information OS: Ubuntu 22.04.4 LTS |
@creaexo Looks like Ubuntu doesn't have necessary CA certificates installed. Try: pip install certifi If above alone does not work, also try: sudo apt-get install ca-certificates Please let me know. |
Thank you for your reply! After the above recommendations, a successful response began to come alternating with an unsuccessful one. Why do you think not every answer is successful? Proxy
Two curl requests are executed, one after the other
|
@abhinavsingh, also I have problem with standard ReverseProxyPlugin.handle_route, which must redirect Proxy
Thre curl requests
|
Unsure what the issue might be at your end, but I am unable to reproduce the empty reply from server on my Mac laptop. I tried about 10-15 hits and got response for all the requests. I see in your logs you encountered |
Yes, I regularly see the message |
After an unsuccessful attempt to implement a redirect scenario with
When I try run
Also I haven't any exceptions. Maybe this will be a clue... |
Please use |
Check FAQs
Please check Frequently Asked Questions
before opening a bug report.
Describe the bug
The included example
ReverseProxyPlugin
doesn't seem to work. It doesn't return any response to the client.To Reproduce
Steps to reproduce the behavior:
proxy --enable-reverse-proxy --plugins proxy.plugin.ReverseProxyPlugin
curl -v localhost:8899/get
Here are the outputs I see on my machine when I do this.
Proxy
Curl
Expected behavior
I expect the output that httpbin.org/get returns:
Version information
I see this behavior on two different machines.
Additional context
Add any other context about the problem here.
Screenshots
If applicable, add screenshots to help explain your problem.
The text was updated successfully, but these errors were encountered: