{"action":"closed","issue":{"url":"https://api.github.com/repos/dart-lang/pub/issues/1957","repository_url":"https://api.github.com/repos/dart-lang/pub","labels_url":"https://api.github.com/repos/dart-lang/pub/issues/1957/labels{/name}","comments_url":"https://api.github.com/repos/dart-lang/pub/issues/1957/comments","events_url":"https://api.github.com/repos/dart-lang/pub/issues/1957/events","html_url":"https://github.com/dart-lang/pub/issues/1957","id":346448578,"node_id":"MDU6SXNzdWUzNDY0NDg1Nzg=","number":1957,"title":"Cannot set http_proxy for flutter packages pub get","user":{"login":"hadilq","id":5190539,"node_id":"MDQ6VXNlcjUxOTA1Mzk=","avatar_url":"https://avatars0.githubusercontent.com/u/5190539?v=4","gravatar_id":"","url":"https://api.github.com/users/hadilq","html_url":"https://github.com/hadilq","followers_url":"https://api.github.com/users/hadilq/followers","following_url":"https://api.github.com/users/hadilq/following{/other_user}","gists_url":"https://api.github.com/users/hadilq/gists{/gist_id}","starred_url":"https://api.github.com/users/hadilq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hadilq/subscriptions","organizations_url":"https://api.github.com/users/hadilq/orgs","repos_url":"https://api.github.com/users/hadilq/repos","events_url":"https://api.github.com/users/hadilq/events{/privacy}","received_events_url":"https://api.github.com/users/hadilq/received_events","type":"User","site_admin":false},"labels":[{"id":220657204,"node_id":"MDU6TGFiZWwyMjA2NTcyMDQ=","url":"https://api.github.com/repos/dart-lang/pub/labels/needs%20info","name":"needs info","color":"5C9CE5","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-08-01T04:59:31Z","updated_at":"2018-09-03T13:40:49Z","closed_at":"2018-09-03T13:40:49Z","author_association":"NONE","body":"I asked this question in [flutter issues](https://github.com/flutter/flutter/issues/20032), but as it seems I have to ask it here. So I copy the question.\r\n\r\nI checked out `https://github.com/flutter/plugins/tree/master/packages/image_picker/example` project and try to set the http proxy to get dependencies by this \r\n\r\n    export http_proxy=http://127.0.0.1:8035\r\n\r\nthen running\r\n\r\n    $ flutter packages pub get --verbosity=all  \r\n    ...\r\n    IO  : Get package from https://pub.dartlang.org/packages/video_player/versions/0.5.2.tar.gz.\r\n    MSG : Downloading video_player 0.5.2...\r\n    IO  : Created temp directory /opt/android-sdk/flutter/.pub-cache/_temp/dirEDYKFN\r\n    IO  : HTTP GET https://pub.dartlang.org/packages/video_player/versions/0.5.2.tar.gz\r\n        | X-Pub-OS: linux\r\n        | X-Pub-Command: get\r\n        | X-Pub-Session-ID: 4CC0B103-8DF0-4CBA-A313-0310AB06C9A5\r\n        | X-Pub-Environment: flutter_cli:interactive\r\n        | X-Pub-Reason: direct\r\n        | user-agent: Dart pub 2.0.0-dev.58.0.flutter-f981f09760\r\n    IO  : HTTP response 403 Forbidden for GET https://pub.dartlang.org/packages/video_player/versions/0.5.2.tar.gz\r\n        | took 0:00:01.532410\r\n        | alt-svc: quic=\":443\"; ma=2592000; v=\"44,43,39,35\"\r\n        | cache-control: private, max-age=0\r\n        | date: Tue, 31 Jul 2018 10:38:26 GMT\r\n        | content-length: 193\r\n        | x-guploader-uploadid: AEnB2UqvCtydp6TMZC8m38IAx_bqVtZFDSeX8a6Vk1QfhRJEICqOpwWvu5JwmSbNWj2Tgawb0wO4zU_SJ5SCJy5lluFA_M5iQ\r\n        | content-type: application/xml; charset=UTF-8\r\n        | server: UploadServer\r\n        | expires: Tue, 31 Jul 2018 10:38:26 GMT\r\n    ERR : HTTP error 403: Forbidden\r\n    FINE: Exception type: PubHttpException\r\n    ERR : package:pub/src/http.dart 220                _ThrowingClient.send\r\n        | ===== asynchronous gap ===========================\r\n        | dart:async                                   _Completer.completeError\r\n        | package:pub/src/http.dart                    _ThrowingClient.send\r\n        | ===== asynchronous gap ===========================\r\n        | dart:async                                   _asyncThenWrapperHelper\r\n        | package:pub/src/http.dart 194                _ThrowingClient.send\r\n        | package:http_throttle/http_throttle.dart 33  ThrottleClient.send\r\n        | ===== asynchronous gap ===========================\r\n        | dart:async                                   _asyncThenWrapperHelper\r\n        | package:http_throttle/http_throttle.dart 28  ThrottleClient.send\r\n        | package:pub/src/source/hosted.dart 304       BoundHostedSource._download\r\n        | ===== asynchronous gap ===========================\r\n        | dart:async                                   new Future.microtask\r\n        | package:pub/src/source/hosted.dart 297       BoundHostedSource._download\r\n        | package:pub/src/source/hosted.dart 199       BoundHostedSource.downloadToSystemCache\r\n        | ===== asynchronous gap ===========================\r\n        | dart:async                                   new Future.microtask\r\n        | package:pub/src/source/hosted.dart 194       BoundHostedSource.downloadToSystemCache\r\n        | package:pub/src/entrypoint.dart 372          Entrypoint._get.<fn>\r\n        | ===== asynchronous gap ===========================\r\n        | dart:async                                   new Future.microtask\r\n        | package:pub/src/entrypoint.dart 367          Entrypoint._get.<fn>\r\n        | dart:async                                   runZoned\r\n        | package:pub/src/http.dart 275                withDependencyType\r\n        | package:pub/src/entrypoint.dart 367          Entrypoint._get\r\n        | package:pub/src/entrypoint.dart 229          Entrypoint.acquireDependencies.<fn>\r\n        | dart:async                                   Future.wait\r\n        | package:pub/src/entrypoint.dart 229          Entrypoint.acquireDependencies\r\n        | ===== asynchronous gap ===========================\r\n        | dart:async                                   _asyncThenWrapperHelper\r\n        | package:pub/src/entrypoint.dart 192          Entrypoint.acquireDependencies\r\n        | package:pub/src/command/get.dart 38          GetCommand.run\r\n        | package:args/command_runner.dart 194         CommandRunner.runCommand\r\n        | ===== asynchronous gap ===========================\r\n        | dart:async                                   new Future.microtask\r\n        | package:args/command_runner.dart 142         CommandRunner.runCommand\r\n        | package:pub/src/command_runner.dart 168      PubCommandRunner.runCommand.<fn>\r\n        | dart:async                                   new Future.sync\r\n        | package:pub/src/utils.dart 115               captureErrors.<fn>\r\n        | package:stack_trace                          Chain.capture\r\n        | package:pub/src/utils.dart 130               captureErrors\r\n        | package:pub/src/command_runner.dart 168      PubCommandRunner.runCommand\r\n    ERR : This is an unexpected error. Please run\r\n        | \r\n        |     pub --trace get --verbosity=all\r\n        | \r\n        | and include the logs in an issue on https://github.com/dart-lang/pub/issues/new\r\n    pub finished with exit code 69\r\n\r\nThe flutter version  is \r\n\r\n    flutter --version \r\n    Flutter 0.5.1 • channel beta • https://github.com/flutter/flutter.git\r\n    Framework • revision c7ea3ca377 (9 weeks ago) • 2018-05-29 21:07:33 +0200\r\n    Engine • revision 1ed25ca7b7\r\n    Tools • Dart 2.0.0-dev.58.0.flutter-f981f09760\r\n\r\nAs the [documentation](https://www.dartlang.org/tools/pub/troubleshoot#pub-get-fails-from-behind-a-corporate-firewall) of pub mentioned, it should work, but wrapping pub in flutter make this wrong behaviour! Is there any concern for that? How can I correct this behaviour? \r\n\r\nPS: I'm sure '127.0.0.1:8035' is working correctly\r\n"}}
{"actor":{"display_login":"hadilq"}}