You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OS version: Microsoft Windows [Version 10.0.19041.508]
Are you using the Chinese community mirror or a corporate firewall? Yes
Problem
I want to publish a package, because I am in some restricted network environment. I can manage to connect to the outside network using a https proxy via extension in Chrome. I also set http_proxy/https_proxy and test it ok using curl (I need to add --proxy-insecure option or I will get network error issue). But when I try to execute pub publish, I got Connection closed before full header was received error.
Expected behavior
pub publish works on the existed https proxy.
Actual behavior
network error
--trace output
Microsoft Windows [Version 10.0.19041.508]
(c) 2020 Microsoft Corporation. All rights reserved.
D:\code\dart\simple_throttle_debounce>set http_proxy=https://usa.cn-cloudflare.com:443
D:\code\dart\simple_throttle_debounce>set https_proxy=https://usa.cn-cloudflare.com:443
D:\code\dart\simple_throttle_debounce>curl --proxy-insecure cip.cc
IP : 185.152.67.14
地址 : 美国 加利福尼亚州 洛杉矶
运营商 : cdn77.com
数据二 : 美国 | 加利福尼亚州洛杉矶CDN77节点
数据三 : 英国
URL : http://www.cip.cc/185.152.67.14
D:\code\dart\simple_throttle_debounce>pub publish
Publishing simple_throttle_debounce 0.0.1 to https://pub.flutter-io.cn:
|-- .gitignore
|-- CHANGELOG.md
|-- LICENSE
|-- README.md
|-- analysis_options.yaml
|-- example
| '-- simple_throttle_debounce_example.dart
|-- lib
| |-- simple_throttle_debounce.dart
| '-- src
| |-- simple_throttle_debounce_base.dart
| '-- var_args_function.dart
|-- pubspec.yaml
'-- test
'-- simple_throttle_debounce_test.dart
Connection closed before full header was received
D:\code\dart\simple_throttle_debounce>
But if you want to ignore HTTPS certificates you'll need to add them to your system. Recent versions of Dart have patched to load custom certificates from the operating system.
We do not offer a --proxy-insecure option, and I think our decision that we shall not offer such option. If you trust a proxy add its certificate to the system.
Note. it's entirely possible that we update pub to have tests to ensure that custom certificates and https_proxy actually works as expected.
Environment
pub version
orflutter pub version
: Pub 2.9.3Problem
I want to publish a package, because I am in some restricted network environment. I can manage to connect to the outside network using a https proxy via extension in Chrome. I also set
http_proxy/https_proxy
and test it ok using curl (I need to add --proxy-insecure option or I will get network error issue). But when I try to executepub publish
, I gotConnection closed before full header was received
error.Expected behavior
pub publish works on the existed https proxy.
Actual behavior
network error
--trace output
Here is the verbose log
verbose
The text was updated successfully, but these errors were encountered: