Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
cijiugechu opened this issue May 5, 2024 · 0 comments · May be fixed by #1316
Open

Comments

@cijiugechu
Copy link

cijiugechu commented May 5, 2024

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant