dss
dss
DDeno
Created by dss on 7/25/2024 in #help
"invalid HTTP version parsed" error in proxy environmnet
Hi, now I installed deno on Ubuntu 22.04 and run deno upgrade then following error was happened. Could you let me know workaround if possible?
$ deno upgrade
Looking up latest version
error: client error (SendRequest)

Caused by:
invalid HTTP version parsed
$ deno upgrade
Looking up latest version
error: client error (SendRequest)

Caused by:
invalid HTTP version parsed
My PC is in proxy environment and the setting is: (.bashrc)
export HTTP_PROXY="http://xxxxxxxxxx.xxx"
export HTTPS_PROXY="http://xxxxxxxxxx.xxx"
export HTTP_PROXY="http://xxxxxxxxxx.xxx"
export HTTPS_PROXY="http://xxxxxxxxxx.xxx"
So HTTP_PROXY and HTTPS_PROXY is same value. Note: Other commands (ex. Git clone or apt or curl) was passed this configuration. And I tried to change http to https of HTTPS_PROXY as following:
export HTTPS_PROXY="https://xxxxxxxxxx.xxx"
export HTTPS_PROXY="https://xxxxxxxxxx.xxx"
Then the following error caused:
$ deno upgrade
Looking up latest version
error: client error (Connect)

Caused by:
Connection reset by peer (os error 104)
$ deno upgrade
Looking up latest version
error: client error (Connect)

Caused by:
Connection reset by peer (os error 104)
Deno version is:
$ deno --version
deno 1.45.3 (release, x86_64-unknown-linux-gnu)
v8 12.7.224.13
typescript 5.5.2
$ deno --version
deno 1.45.3 (release, x86_64-unknown-linux-gnu)
v8 12.7.224.13
typescript 5.5.2
5 replies