AnWeber / vscode-httpyac

Quickly and easily send REST, Soap, GraphQL, GRPC, MQTT and WebSocket requests directly within Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=anweber.vscode-httpyac
MIT License
222 stars 20 forks source link

[BUG] send 127.0.0.1:50001 http request failed with httpyac vscode plugin, 50001 is special port for this problem #214

Closed li1234yun closed 10 months ago

li1234yun commented 10 months ago

When I send http request with httpyac, if I use 50001 port to send request will throw error.

image

httpYac - Rest Client v6.6.3

AnWeber commented 10 months ago

It seems that the error comes directly from NodeJS and it occurs when parsing the HTTP response. I think at port 50001 there is no HTTP server or it responds with HTTP/2 or newer. I would expect HTTP/1.1 for this request. Can you call this once with curl and give me the response. Alternatively record it with Wireshark. The same issue was reported at Postman (https://github.com/postmanlabs/postman-app-support/issues/9176). There are some good tips for research in there.

li1234yun commented 10 months ago

Hi, @AnWeber This is my wrong usage. I send http request to GRPC server port.

image

Thank you for your patient reply!

AnWeber commented 10 months ago

You're welcome. Interestingly, the GRPC also returns HTTP/0.9 during a curl call. Possibly just one falltrough issue of curl (seems to be).