-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Dartium dependency on Pub Serve makes it not start if NW proxies are in use #18964
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
Comments
Can you be a little more specific about what error is being reported. Added NeedsInfo label. |
I don't know. |
This comment was originally written by [email protected] Hi, I use Dart from my company's network with proxy. When I start Dartium (Dart SDK version 1.5.0-edge.36468), then I get the error: --- 08:58:09 Starting pub serve : hanalite-admin --- In older version, pub serve was not called. Best regards, Anja |
This comment was originally written by @zoechi pub serve is the new default |
This comment was originally written by [email protected] I think the issue is that pub serve does not work with proxies. When I start Dartium from a network without proxies, this error does not appear, but other errors. I will open an extra bug for this. |
cc @munificent. |
Removed Area-Dartium label. |
When loading transformers, "pub serve" starts a server on localhost and starts an isolate that loads its sources from that server. All the HTTP requests go through the VM, so if there's special configuration that needs to happen to make it work with proxies that's where it should go. If your proxy forbids any localhost connections, though, there may not be a solution until issue #16368 is fixed. |
Removed Area-VM label. |
Bob, are you guys using "localhost" or "127.0.0.1" to connect locally to pub? In the past I have experienced issues where the latter would work in places where the name localhost wouldn't. cc @nex3. |
We use "localhost" for "pub serve" and "127.0.0.1" for "pub build". Anja: if you run "pub serve --hostname 127.0.0.1", does it work? |
Removed Priority-Unassigned label. |
This comment was originally written by [email protected] In my environment variables, I have set http_proxy proxy.wdf.sap.corp:8080 Otherwise, pub get would not work. With this settings, "pub serve --hostname 127.0.0.1" does not work: c:\git\hanalite-admin>pub serve --hostname 127.0.0.1 (1.1s) "pub serve --hostname localhost" does not work either: c:\git\hanalite-admin>pub serve --hostname localhost (1:16.9s) |
Hi Anja, It appears that your proxy intercepts localhost connections. They may need to be explicitly allowed. Can you try adding the following to your existing environment: no_proxy localhost,127.0.0.1,::1 Thanks!,
|
This comment was originally written by [email protected] Hi Anders, |
Great to hear it is now working. For a bit of background see issue #15215, where we considered automatically adding the loopback addresses to 'no_proxy', but due to the behavior of wget and curl put that on hold. |
Added Fixed label. |
Originally in https://code.google.com/p/dart/issues/detail?id=18847
Unfortunately, with the continuous build of May 22, our application does not work anymore (Dartium reports errors and does not start). Is there a bit more stable version available with that fix?
The text was updated successfully, but these errors were encountered: