edgedb-cli icon indicating copy to clipboard operation
edgedb-cli copied to clipboard

When executing the web UI subcommand in a local environment, disable the implicit HTTP proxy

Open cijiugechu opened this issue 2 months ago • 0 comments

Description

When running the edgedb ui subcommand with ALL_PROXY and HTTP_PROXY set, to fetch a local web ui url, due to the default configuration of reqwest, it implicitly reads the values of ALL_PROXY and similar environment variables and uses the proxy upon making requests, resulting in a server response of 503 Service Unavailable; indeed, unsetting these environment variables allows the subcommand to function properly.

Additional information

With RUST_LOG=DEBUG set:

RUST_LOG=DEBUG edgedb ui
[2024-05-05T04:46:23Z DEBUG edgedb::version_check] Cached version None
[2024-05-05T04:46:23Z DEBUG reqwest::connect] starting new connection: http://localhost:10701/
[2024-05-05T04:46:23Z DEBUG reqwest::connect] proxy(http://172.21.128.1:7890) intercepts 'http://localhost:10701/'
[2024-05-05T04:46:23Z INFO  edgedb::commands::ui] GET http://localhost:10701/ui returned status code 503 Service Unavailable
edgedb error: Web UI not served correctly by specified EdgeDB server. Try `edgedb instance logs -I <instance_name>` to see details.

Possible solution

When executing the web UI subcommand in a local environment, disable the implicit HTTP proxy.

  • EdgeDB Version: 5.3+cc878d8
  • EdgeDB CLI Version: 5.1.0+7c5764f
  • OS Version: WSL2 ubuntu 22.04

cijiugechu avatar May 05 '24 05:05 cijiugechu