Kong / insomnia

The open-source, cross-platform API client for GraphQL, REST, WebSockets, SSE and gRPC. With Cloud, Local and Git storage.
https://insomnia.rest
Apache License 2.0
34.46k stars 1.95k forks source link

api call results in Error: Unsupported protocol #7595

Open ajfoijsdoiafdgjoasld opened 3 months ago

ajfoijsdoiafdgjoasld commented 3 months ago

Expected Behavior

When I send a GET request to http://localhost:9003, I get a 200 response. This was working last Friday.

Actual Behavior

image

I get an error: Error: Unsupported protocol In the Timeline tab, I see:

* Preparing request to http://localhost:9003/
* Current time is 2024-06-26T17:43:23.034Z
* Enable automatic URL encoding
* Using HTTP 1.1
* Enable timeout of 99999999900ms
* Enable SSL validation
* Hostname localhost was found in DNS cache
*   Trying 127.0.0.1:9003...
* Connected to localhost (127.0.0.1) port 9003 (#6)

> GET / HTTP/1.1
> Host: localhost:9003
> User-Agent: insomnia/9.2.0
> Accept: */*

* Received HTTP/0.9 when not allowed
* Closing connection 6

Reproduction Steps

I'm currently running opencost apis through port-forwarding.

  1. run kubectl port-forward svc/opencost 9003
  2. open insomnia and run http://localhost:9003 as a GET method
  3. response is an error

Is there an existing issue for this?

Additional Information

No response

Insomnia Version

Version: Insomnia 9.2.0

What operating system are you using?

macOS

Operating System Version

macOS Sonoma 14.5 (23F79)

Installation method

download from insomnia.rest

Last Known Working Insomnia version

No response

subnetmarco commented 2 months ago

@ajfoijsdoiafdgjoasld Can you update to latest 9.3.2 and see if this happens again?