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

Got TLS error trying to find package _ at https://pub.dartlang.org #16505

Closed
danieldaeschle opened this issue Apr 12, 2018 · 15 comments
Closed
Labels
c: crash Stack traces logged to the console tool Affects the "flutter" command-line tool. See also t: labels.

Comments

@danieldaeschle
Copy link

danieldaeschle commented Apr 12, 2018

Steps to Reproduce

flutter create -v flutter_test_app

Behind company proxy (http://proxy.our-domain.com:8080) (No HTTPS/SSL)

Environment

OS: Windows 10

HTTP_PROXY and HTTPS_PROXY Env vars are set.

Logs

[  +28 ms] [C:\Users\i01002704\AppData\Local\flutter\] git rev-parse --abbrev-ref --symbolic @{u}
[  +93 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[   +1 ms] origin/beta
[   +2 ms] [C:\Users\i01002704\AppData\Local\flutter\] git rev-parse --abbrev-ref HEAD
[  +58 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[   +1 ms] beta
[   +3 ms] [C:\Users\i01002704\AppData\Local\flutter\] git ls-remote --get-url origin
[  +67 ms] Exit code 0 from: git ls-remote --get-url origin
[   +1 ms] https://github.com/flutter/flutter.git
[   +2 ms] [C:\Users\i01002704\AppData\Local\flutter\] git log -n 1 --pretty=format:%H
[  +54 ms] Exit code 0 from: git log -n 1 --pretty=format:%H
[   +1 ms] b397406561f5e7a9c94e28f58d9e49fca0dd58b7
[   +2 ms] [C:\Users\i01002704\AppData\Local\flutter\] git log -n 1 --pretty=format:%ar
[  +51 ms] Exit code 0 from: git log -n 1 --pretty=format:%ar
[   +1 ms] 9 days ago
[   +2 ms] [C:\Users\i01002704\AppData\Local\flutter\] git describe --match v*.*.* --first-parent --long --tags
[  +50 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags
[   +1 ms] v0.2.8-0-gb39740656
[ +437 ms] Creating project flutter_test_app...
[  +26 ms]   flutter_test_app\.gitignore (created)
[  +19 ms]   flutter_test_app\.idea\libraries\Dart_SDK.xml (created)
[  +12 ms]   flutter_test_app\.idea\libraries\Flutter_for_Android.xml (created)
[   +3 ms]   flutter_test_app\.idea\modules.xml (created)
[   +5 ms]   flutter_test_app\.idea\runConfigurations\main_dart.xml (created)
[   +4 ms]   flutter_test_app\.idea\workspace.xml (created)
[   +5 ms]   flutter_test_app\.metadata (created)
[   +3 ms]   flutter_test_app\android\app\build.gradle (created)
[   +5 ms]   flutter_test_app\android\app\src\main\java\com\example\fluttertestapp\MainActivity.java (created)
[   +6 ms]   flutter_test_app\android\build.gradle (created)
[   +5 ms]   flutter_test_app\android\.gitignore (created)
[   +2 ms]   flutter_test_app\android\app\src\main\AndroidManifest.xml (created)
[   +3 ms]   flutter_test_app\android\app\src\main\res\drawable\launch_background.xml (created)
[   +4 ms]   flutter_test_app\android\app\src\main\res\mipmap-hdpi\ic_launcher.png (created)
[   +4 ms]   flutter_test_app\android\app\src\main\res\mipmap-mdpi\ic_launcher.png (created)
[   +3 ms]   flutter_test_app\android\app\src\main\res\mipmap-xhdpi\ic_launcher.png (created)
[   +3 ms]   flutter_test_app\android\app\src\main\res\mipmap-xxhdpi\ic_launcher.png (created)
[   +5 ms]   flutter_test_app\android\app\src\main\res\mipmap-xxxhdpi\ic_launcher.png (created)
[   +3 ms]   flutter_test_app\android\app\src\main\res\values\styles.xml (created)
[   +4 ms]   flutter_test_app\android\gradle\wrapper\gradle-wrapper.properties (created)
[   +3 ms]   flutter_test_app\android\gradle.properties (created)
[   +5 ms]   flutter_test_app\android\settings.gradle (created)
[   +3 ms]   flutter_test_app\ios\Runner\AppDelegate.h (created)
[   +3 ms]   flutter_test_app\ios\Runner\AppDelegate.m (created)
[   +2 ms]   flutter_test_app\ios\Runner\main.m (created)
[   +3 ms]   flutter_test_app\ios\Runner.xcodeproj\project.pbxproj (created)
[  +15 ms]   flutter_test_app\ios\.gitignore (created)
[   +3 ms]   flutter_test_app\ios\Flutter\AppFrameworkInfo.plist (created)
[   +3 ms]   flutter_test_app\ios\Flutter\Debug.xcconfig (created)
[   +2 ms]   flutter_test_app\ios\Flutter\Release.xcconfig (created)
[   +3 ms]   flutter_test_app\ios\Runner\Assets.xcassets\AppIcon.appiconset\Contents.json (created)
[   +4 ms]   flutter_test_app\ios\Runner\Assets.xcassets\AppIcon.appiconset\Icon-App-1024x1024@1x.png (created)
[   +3 ms]   flutter_test_app\ios\Runner\Assets.xcassets\AppIcon.appiconset\Icon-App-20x20@1x.png (created)
[   +3 ms]   flutter_test_app\ios\Runner\Assets.xcassets\AppIcon.appiconset\Icon-App-20x20@2x.png (created)
[   +3 ms]   flutter_test_app\ios\Runner\Assets.xcassets\AppIcon.appiconset\Icon-App-20x20@3x.png (created)
[   +3 ms]   flutter_test_app\ios\Runner\Assets.xcassets\AppIcon.appiconset\Icon-App-29x29@1x.png (created)
[   +4 ms]   flutter_test_app\ios\Runner\Assets.xcassets\AppIcon.appiconset\Icon-App-29x29@2x.png (created)
[   +3 ms]   flutter_test_app\ios\Runner\Assets.xcassets\AppIcon.appiconset\Icon-App-29x29@3x.png (created)
[   +3 ms]   flutter_test_app\ios\Runner\Assets.xcassets\AppIcon.appiconset\Icon-App-40x40@1x.png (created)
[   +3 ms]   flutter_test_app\ios\Runner\Assets.xcassets\AppIcon.appiconset\Icon-App-40x40@2x.png (created)
[   +3 ms]   flutter_test_app\ios\Runner\Assets.xcassets\AppIcon.appiconset\Icon-App-40x40@3x.png (created)
[   +4 ms]   flutter_test_app\ios\Runner\Assets.xcassets\AppIcon.appiconset\Icon-App-60x60@2x.png (created)
[   +3 ms]   flutter_test_app\ios\Runner\Assets.xcassets\AppIcon.appiconset\Icon-App-60x60@3x.png (created)
[   +3 ms]   flutter_test_app\ios\Runner\Assets.xcassets\AppIcon.appiconset\Icon-App-76x76@1x.png (created)
[   +3 ms]   flutter_test_app\ios\Runner\Assets.xcassets\AppIcon.appiconset\Icon-App-76x76@2x.png (created)
[   +3 ms]   flutter_test_app\ios\Runner\Assets.xcassets\AppIcon.appiconset\Icon-App-83.5x83.5@2x.png (created)
[   +4 ms]   flutter_test_app\ios\Runner\Assets.xcassets\LaunchImage.imageset\Contents.json (created)
[   +3 ms]   flutter_test_app\ios\Runner\Assets.xcassets\LaunchImage.imageset\LaunchImage.png (created)
[   +4 ms]   flutter_test_app\ios\Runner\Assets.xcassets\LaunchImage.imageset\LaunchImage@2x.png (created)
[   +4 ms]   flutter_test_app\ios\Runner\Assets.xcassets\LaunchImage.imageset\LaunchImage@3x.png (created)
[   +3 ms]   flutter_test_app\ios\Runner\Assets.xcassets\LaunchImage.imageset\README.md (created)
[   +3 ms]   flutter_test_app\ios\Runner\Base.lproj\LaunchScreen.storyboard (created)
[   +3 ms]   flutter_test_app\ios\Runner\Base.lproj\Main.storyboard (created)
[   +3 ms]   flutter_test_app\ios\Runner\Info.plist (created)
[   +4 ms]   flutter_test_app\ios\Runner.xcodeproj\project.xcworkspace\contents.xcworkspacedata (created)
[   +3 ms]   flutter_test_app\ios\Runner.xcodeproj\xcshareddata\xcschemes\Runner.xcscheme (created)
[   +4 ms]   flutter_test_app\ios\Runner.xcworkspace\contents.xcworkspacedata (created)
[   +3 ms]   flutter_test_app\lib\main.dart (created)
[   +7 ms]   flutter_test_app\flutter_test_app.iml (created)
[   +3 ms]   flutter_test_app\flutter_test_app_android.iml (created)
[   +3 ms]   flutter_test_app\pubspec.yaml (created)
[   +3 ms]   flutter_test_app\README.md (created)
[   +4 ms]   flutter_test_app\test\widget_test.dart (created)
[  +21 ms] Wrote 65 files.
[   +5 ms] Running "flutter packages get" in flutter_test_app...
[   +4 ms] Using C:\Users\i01002704\AppData\Local\flutter\.pub-cache for the pub cache.
[   +4 ms] [C:\Users\i01002704\Documents\i01002704\Projects\Android\flutter_test_app\] C:\Users\i01002704\AppData\Local\flutter\bin\cache\dart-sdk\bin\pub.bat --verbosity=warning --verbose get --no-precompile
[+64423 ms] Got TLS error trying to find package cupertino_icons at https://pub.dartlang.org.
[  +23 ms] pub get failed (69) -- attempting retry 1 in 1 second...

Flutter Doctor

[√] Flutter (Channel beta, v0.2.8, on Microsoft Windows [Version 10.0.15063], locale de-DE)
    • Flutter version 0.2.8 at C:\Users\i01002704\AppData\Local\flutter
    • Framework revision b397406561 (9 days ago), 2018-04-02 13:53:20 -0700
    • Engine revision c903c217a1
    • Dart version 2.0.0-dev.43.0.flutter-52afcba357

[!] Android toolchain - develop for Android devices (Android SDK 27.0.3)
    • Android SDK at C:\Users\i01002704\AppData\Local\Android\sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-P, build-tools 27.0.3
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02)
    X Android license status unknown.

[√] Android Studio (version 3.1)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02)

[!] IntelliJ IDEA Community Edition (version 2017.3)
    • IntelliJ at C:\Users\i01002704\AppData\Local\JetBrains\Toolbox\apps\IDEA-C\ch-0\173.4674.33
    X Flutter plugin not installed; this adds Flutter specific functionality.
    X Dart plugin not installed; this adds Dart specific functionality.
    • For information about installing plugins, see
      https://flutter.io/intellij-setup/#installing-the-plugins

[!] VS Code, 64-bit edition (version 1.22.1)
    • VS Code at C:\Program Files\Microsoft VS Code
    • Dart Code extension not installed; install from
      https://marketplace.visualstudio.com/items?itemName=Dart-Code.dart-code

[!] Connected devices
    ! No devices available

! Doctor found issues in 4 categories.
@zoechi
Copy link
Contributor

zoechi commented Jul 16, 2018

Sorry for not responding earlier.
Is this still an issue?

@zoechi zoechi added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Jul 16, 2018
@danieldaeschle
Copy link
Author

I think yes

@no-response no-response bot removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Jul 16, 2018
@zoechi zoechi added tool Affects the "flutter" command-line tool. See also t: labels. c: crash Stack traces logged to the console labels Jul 16, 2018
@danieldaeschle
Copy link
Author

I tried setting PUB_HOSTED_URL to http://pub.dartlang.org
i still get Got TLS error trying to find package cupertino_icons at http://pub.dartlang.org.

@danieldaeschle
Copy link
Author

This helped me: dart-lang/pub#1882 (comment)

@zoechi
Copy link
Contributor

zoechi commented Sep 6, 2018

Seems to be a dup of #15014 then. Thanks for the update!

@TomOerlemans
Copy link

TomOerlemans commented Apr 3, 2019

Alternative solution here (for Ubuntu 16.04), make sure that your certificates are in order:

sudo apt-get install -y ca-certificates
sudo update-ca-certificates

@shajji1
Copy link

shajji1 commented Sep 20, 2019

can anyone tell me how i can get certificate file in windows 10?

@Paul74
Copy link

Paul74 commented Jan 21, 2021

Same error here. Still no solution on windows 10...

@giovanebmr
Copy link

Same error here. Still no solution on windows 10...

After configuring the certificates on windows 10 this error still remained.

The error only disappeared after disabling the anti virus kaspersky.

@Paul74
Copy link

Paul74 commented Jan 23, 2021

Same error here. Still no solution on windows 10...

After configuring the certificates on windows 10 this error still remained.

The error only disappeared after disabling the anti virus kaspersky.

I don't have any antivirus on the way. Unfortunately it's a corporate proxy/firewall thing.

@SiddharthGadekar
Copy link

Has there been any solution to this?
Can someone explain the process to follow if I'm using a self-signed certificate?

@Paul74
Copy link

Paul74 commented Apr 2, 2021

Has there been any solution to this?
Can someone explain the process to follow if I'm using a self-signed certificate?

no solution for me. I've ended up by doing a remote desktop connection to a computer with a straight internet connection. You just need a direct access to the Internet, period.

@SiddharthGadekar
Copy link

Has there been any solution to this?
Can someone explain the process to follow if I'm using a self-signed certificate?

no solution for me. I've ended up by doing a remote desktop connection to a computer with a straight internet connection. You just need a direct access to the Internet, period.

Thanks Paul. I'm guessing a corporate firewall was causing the issue.

@Paul74
Copy link

Paul74 commented Apr 5, 2021

Has there been any solution to this?
Can someone explain the process to follow if I'm using a self-signed certificate?

no solution for me. I've ended up by doing a remote desktop connection to a computer with a straight internet connection. You just need a direct access to the Internet, period.

Thanks Paul. I'm guessing a corporate firewall was causing the issue.

yes it's always a proxy/firewall thing. In my case I could not manage to sort it out.

@github-actions
Copy link

github-actions bot commented Aug 3, 2021

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
c: crash Stack traces logged to the console tool Affects the "flutter" command-line tool. See also t: labels.
Projects
None yet
Development

No branches or pull requests

7 participants