bepass-org / warp-plus

Warp+Psiphon, an anti censorship utility for iran
MIT License
1.33k stars 237 forks source link

Request-URI Too Long #78

Closed alirezahabib closed 2 months ago

alirezahabib commented 2 months ago

Version number v1.1.3

Describe the bug Sometimes I get this error when accessing valid URLs: 414 Request-URI Too Long [IP: 127.0.0.1 8086]

To Reproduce Steps to reproduce the behavior:

  1. Run warp: ./warp-plus --gool -b 127.0.0.1:8086 --scan --rtt 300ms -4
  2. To make apt use warp, edit this file: sudo nano /etc/apt/apt.conf
  3. Add this line and save: Acquire::http::Proxy "http://127.0.0.1:8086";
  4. Do sudo apt update

This is what happens for me:

Hit:1 http://nova.clouds.archive.ubuntu.com/ubuntu jammy InRelease
Err:2 http://nova.clouds.archive.ubuntu.com/ubuntu jammy-updates InRelease
  414  Request-URI Too Long [IP: 127.0.0.1 8086]
Get:3 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]                        
Ign:3 http://security.ubuntu.com/ubuntu jammy-security InRelease                                 
Hit:4 https://download.docker.com/linux/ubuntu jammy InRelease                 
Get:5 http://nova.clouds.archive.ubuntu.com/ubuntu jammy-backports InRelease [109 kB]
Ign:5 http://nova.clouds.archive.ubuntu.com/ubuntu jammy-backports InRelease
Get:3 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Ign:3 http://security.ubuntu.com/ubuntu jammy-security InRelease
Get:5 http://nova.clouds.archive.ubuntu.com/ubuntu jammy-backports InRelease [109 kB]
Ign:5 http://nova.clouds.archive.ubuntu.com/ubuntu jammy-backports InRelease
Get:3 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Ign:3 http://security.ubuntu.com/ubuntu jammy-security InRelease
Get:5 http://nova.clouds.archive.ubuntu.com/ubuntu jammy-backports InRelease [109 kB]
Ign:5 http://nova.clouds.archive.ubuntu.com/ubuntu jammy-backports InRelease
Get:3 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Err:3 http://security.ubuntu.com/ubuntu jammy-security InRelease
  Error reading from server. Remote end closed connection [IP: 127.0.0.1 8086]
Get:5 http://nova.clouds.archive.ubuntu.com/ubuntu jammy-backports InRelease [109 kB]
Err:5 http://nova.clouds.archive.ubuntu.com/ubuntu jammy-backports InRelease
  Error reading from server. Remote end closed connection [IP: 127.0.0.1 8086]
Reading package lists... Done      
E: Failed to fetch http://nova.clouds.archive.ubuntu.com/ubuntu/dists/jammy-updates/InRelease  414  Request-URI Too Long [IP: 127.0.0.1 8086]
E: The repository 'http://nova.clouds.archive.ubuntu.com/ubuntu jammy-updates InRelease' is no longer signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

Desktop (please complete the following information):

markpash commented 2 months ago

can you try this instead and see if it solves your problem?

Acquire::http::proxy "socks5h://127.0.0.1:8086";

alirezahabib commented 2 months ago

It worked. Thanks!