apache / shenyu

Apache ShenYu is a Java native API Gateway for service proxy, protocol conversion and API governance.
https://shenyu.apache.org/
Apache License 2.0
8.44k stars 2.93k forks source link

I have a problem with the springcloud proxy plug-in #2477

Closed ldinger closed 2 years ago

ldinger commented 2 years ago

Question

?

yu199195 commented 2 years ago

used english and follow the issue template

ldinger commented 2 years ago

look this the hosts of my computer: 127.0.0.1 shenyu.test.com shenyu's version is 2.4.1 and I have used the springcloud plug-in
for example , the proxy address is : shenyu.test.com/service-app1/test postman and browser test this address returns empty but “curl” command line test returns normally curl shenyu.test.com/service-app1/test returns is OK browser returns : net::ERR_EMPTY_RESPONSE postman returns: error: socket hang up

However, both 127.0.01 and localhost can be returned normally

yu199195 commented 2 years ago

shenyu.test.com Is it passable in your local area? What request method are you using? post and get?

ldinger commented 2 years ago

both ping and telnet can pass used GET request method
os is mac “shenyu.test.com” in my hosts configuration file I don't understand why "curl" is ok but browser and postman not passable

yu199195 commented 2 years ago

can you replace shenyu.test.comto ip:port ?