irmen / Pyro5

Pyro 5 - Python remote objects
https://pyro5.readthedocs.io
MIT License
303 stars 36 forks source link

Invalid header received from client #80

Closed spectereye closed 10 months ago

spectereye commented 11 months ago

Hi, just start pyro with some quick setup and test with commands below

pyro5-ns
pyro5-httpgateway -e "Pyro.|test."

when i try "http://127.0.0.1:8080/pyro/" i get error "Invalid header received from client", anything i did wrong?

irmen commented 11 months ago

Can't reproduce. Where do you see this error?

spectereye commented 11 months ago

thanks for your quick response! i got it in windows 10 64bit, python 3.10 64bit, pyro5 5.14, check the link in both browser and curl http://127.0.0.1:8080/pyro/ but get the same error.

irmen commented 11 months ago

Who is printing the error? The client or the Pyro gateway process?

spectereye commented 10 months ago

I see the error on browser after i type the address above, or output of the curl command, so it shall be response of Pyro http server.

irmen commented 10 months ago

can you post the full output of the command curl -iv http://127.0.0.1:8080/pyro/

spectereye commented 10 months ago

Hi, see output of curl -iv http://127.0.0.1:8080/pyro/ below please.

:: pyro5-ns
:: pyro5-httpgateway -e "Pyro.|test."

> curl -iv http://127.0.0.1:8080/pyro/

*   Trying 127.0.0.1:8080...
* Connected to 127.0.0.1 (127.0.0.1) port 8080 (#0)
> GET /pyro/ HTTP/1.1
> Host: 127.0.0.1:8080
> User-Agent: curl/8.0.1
> Accept: */*
>
< HTTP/1.1 400 Invalid header received from client
HTTP/1.1 400 Invalid header received from client
< Content-Type: text/plain
Content-Type: text/plain
< Connection: close
Connection: close

Also tested on my another computer, every works fine. I guessed maybe because proxy settings, but after i disable proxy below, the same issue remained

set http_proxy=
set https_proxy=
set all_proxy=
irmen commented 10 months ago

Looks like it's a proxy problem after all, most likely Privoxy https://github.com/binhex/arch-delugevpn/issues/174
nothing I can do about this