-
Notifications
You must be signed in to change notification settings - Fork 1.7k
polymer-dart pub build not supported behind proxy #15161
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
This comment was originally written by c.targett...@gmail.com I have encountered the same issue. Pub files and output: https://gist.github.com/xlevus/acba5f930214eff6d693 Additionally, when running $ http_proxy='' https_proxy='' pub build While $ env --unset=http_proxy --unset=https_proxy pub build Works. |
This comment was originally written by c.targ...@gmail.com And further, setting the $ no_proxy="localhost,127.0.0.0/8,::1,[::1]" pub build |
Pub doesn't explicitly handle any proxy configuration; it just calls dart:io and dart:isolate and lets those libraries do the low-level work. The problem here is that pub starts a server that serves Dart code, then spawns an isolate that imports this Dart code. Apparently this isn't working when a proxy is active. I've filed issue #15215 to track the issue in the underlying libraries. Marked this as being blocked by #15215. |
Issue #15582 has been merged into this issue. |
After looking further into this the 'no_proxy' setting in comment #2 is wrong. The syntax 127.0.0.0/8 is not supported. Use 127.0.0.1 instead: $ no_proxy="localhost,127.0.0.1,::1,[::1]" pub build Should work. |
Removed Priority-Unassigned label. |
This comment was originally written by trevor.bo...@gmail.com I'm having the same issue with 'Transformer library "package:observe/transformer.dart" not found.', but I'm not behind a proxy. My code works fine in dartium, run alone or with the dart-editor, but when I try to "pub build" on the command line, it fails with the aforementioned "not found" error. Very confused, because the file is obviously there. Here's the output of my I've also attached it to this message. There are some warnings in there. Attachment: |
This comment was originally written by trevor.borti...@gmail.com Oh, and for reference, here's my example project: https://github.com/wulftone/tabby-element/ |
@trevor, I'm not seeing any errors in either of those logs. Am I missing something? |
This looks like it might be stale. Is anyone on this thread still having problems? |
Added AssumedStale label. |
This comment was originally written by blit...@gmail.com hi i am seeing the same error on window with Dart Editor version 1.2.0.release behind a proxy. code works fine in dartium but cannont build and run as javascript. |
This comment was originally written by marti...@lundogbendsen.dk Hi. I saw the same in dart 1.3...without a proxy... Turns out my pub cache (AppData\Roaming\Pub\Cache) was corrupt (because I once was behind a proxy), and removing it solved the problem. |
This comment was originally written by berz...@gmail.com It's not stale. Still having some problems, probably related to that proxy issue. |
It sounds from issue #15215 that the solution is to disable the proxy when using pub by setting the environment variable "no_proxy=localhost" when invoking pub. |
This issue has been moved to dart-lang/pub#729. |
This issue was originally filed by empyrean...@gmail.com
When running outside of a proxy, the build goal succeeds. When behind a corporate proxy, 'pub build' fails with an error: "Transformer library "package:polymer/transformer.dart" not found."
Dart 1.0.0.3_r30188, Mac OS X 10.8 and 10.9
Pub is able to see the proxy settings ("pub upgrade" successfully downloads dependencies) but the transformer library does not seem to respect those settings. Could this be related in any way to the IPv6 issues in [Issue #14677]? (though I'm not trying to run pub serve)
The text was updated successfully, but these errors were encountered: