-
Notifications
You must be signed in to change notification settings - Fork 455
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
URL including /http/ will throw error : Connection is being rejected #543
Comments
@coolshijun sounds strange, did you use some reverse proxy to reject specific path? And does it work with cURL |
no, just local docker image, and as I described, the parent path can be accessed and if you have 'http/anything', it will throw this error, so I don't think it's related to environment. |
@coolshijun what's your hosted web server for your web app and your web framework? |
just flask and connexion rest api, it's easy to reproduce, if you have any api like http://localhost/user/12345, and you can use http://localhost/user/12345/http to test, it will give you error message like user doen't exist, but at least the request is sent to the server to process, but if you have http://localhost/user/12345/http/test, this will trigger the error and the request never reach the server. |
@coolshijun can you work with cURL? |
yes, same url can be accessed by cURL and postman even it will throw server error, but at least the request is sent to server, but use REST Client, the request is NOT sent to server at all. |
@coolshijun could you please paste the curl command details with |
ok, I misunderstood your question, I use "copy request as cURL" to see the details bur for the call like http://localhost/user/12345/http/test, you will get empty url like curl --request GET So the transformation is going to be empty, I believe that's the reason for rejection. |
@coolshijun nice catch, I have fixed the issue and will be published in the next release. The root cause is that the url contains |
cool, thanks for quick response!!! |
@coolshijun as you wished. Thanks for your email |
Excellent! Thank you very much! |
@coolshijun you can try this in the latest version 0.24.0 |
Great! Thanks for keeping me posted. |
Steps to Reproduce:
Connection is being rejected. The service isn’t running on the server, or incorrect proxy settings in vscode, or a firewall is blocking requests. Details: RequestError: connect ECONNREFUSED 127.0.0.1:443.
The text was updated successfully, but these errors were encountered: