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
Unable to download packages from https://pub.dartlang.org #1989
Comments
Hello Samuel, has your issue been resolved? Mine isn't working either. |
@samueladekunle I'm also in Nigeria and i faced this same issue. I then resolved to using a VPN, and it worked for me. I think we in Nigeria and some other parts of the world have this issue with some packages. |
Is the https://pub.dartlang.org/ site reachable in a browser? cc @mit-mit |
@HemlockBane I had to alternate in between a public Wi-Fi and a VPN service for some weeks. But rather strangely, after switching from Windows to Linux, I have not experienced the same issue on my home network. |
I'm facing the same issue, @natebosch https://pub.dartlang.org/ is reachable in my browser. |
Here in Brazil the website https://pub.dartlang.org/ that flutter uses to get the packages with flutter packages get isn't reachable. I tried using TunnelBear VPN connecting to a USA network and it all worked fine. |
@leodavinci1, could you check if this is ipv6 related (or DNS related, try using |
@jonasfj Tested with 8.8.8.8 DNS config and the website https://pub.dartlang.org/ worked perfectly. When I removed that DNS config, website became unreachable again. |
Hi , i also got this problem in China , do you have a solve way for me ? thanks . |
@chenxiaoyanemile, you can use the Chinese community mirror. |
@jonasfj Hi , thank you for your answer . but i have try it , it doesn't work for me . |
fixed it in China with this method. |
Got the same issue recently while trying to setup flutter. Turn's out I did not set-up the proxy correctly. If you are on Windows and you run the flutter/pub command from PowerShell, the usual recommendation |
@fioan89, |
@jonasfj got it. Thanks for the tip. |
Running '$env:https_proxy='proxy.yourproxy.com:8080' on Powershell gives and error =>The filename, directory name, or volume label syntax is incorrect. |
I also tried running without the $, like 'env:https_proxy=proxy.yourproxy.com:8080'. I am not sure if I am missing something. |
I found the problem and fixed it... |
:( weird, according to this Microsoft page it should work. What version of PowerShell do you have? |
Are you sure you are running this with PowerShell and not Command Prompt? :) I just ran the expression in |
Had thesame issue from Nigeria. I think the issue maybe from my network provider. I fixed it following by declaring PUB_HOSTED_URL as a system environment variable and give it the value You may need to restart your command prompt window for the changes to take effect. |
please do not just copy blindly above solution given by @samueladekunle , you may need to create PUB_HOSTED_URI, but probably link that you need to enter is dependent on your location, for ex- for me it was https://pub.dev/ instead |
Try to see if you can reach https://pub.dev/ in your browser If it is accessible, declare PUB_HOSTED_URL as a system environment variable and give it the value https://pub.dev./ Then exit and reopen your cmd window and try again. Edit: Changed ' https://dartlang-pub-dev.appspot.com/' to ' https://pub.dev/' based on @jonasfj correction |
Do not use This is a staging site used for development and stuff.. data is outdated and often incorrect. |
Hello, everyone, I am facing an issue like below when run flutter pub get. |
Hey everyone ! I was having this same problem executing the command in the VSCode terminal: $ flutter pub get
Got socket error trying to find package sqflite at https://pub.dartlang.org.
pub get failed (server unavailable) -- attempting retry 1 in 1 second...
Got socket error trying to find package sqflite at https://pub.dartlang.org.
pub get failed (server unavailable) -- attempting retry 2 in 2 seconds...
Running "flutter pub get" in contacts_list... And using the linux terminal I could execute the command with no problems: $ flutter pub get
Running "flutter pub get" in contacts_list... 6.4s and I don't know why ¯_(ツ)_/¯ |
is this problem solved? |
Yeah it is
…On Sat, 31 Jul 2021, 6:02 am Arvinth Krishna, ***@***.***> wrote:
Hey everyone !
I was having this same problem executing the command in the VSCode
terminal:
$ flutter pub get
Got socket error trying to find package sqflite at https://pub.dartlang.org.
pub get failed (server unavailable) -- attempting retry 1 in 1 second...
Got socket error trying to find package sqflite at https://pub.dartlang.org.
pub get failed (server unavailable) -- attempting retry 2 in 2 seconds...
Running "flutter pub get" in contacts_list...
And using the linux terminal I could execute the command with no problems:
$ flutter pub get
Running "flutter pub get" in contacts_list... 6.4s
and I don't know why ¯_(ツ)_/¯
is this problem solved?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1989 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHKP5P7MAIAF4EPKIRTQ5SDT2N7VHANCNFSM4FYR4LQA>
.
|
From Nigeria, I switched from AIRTEL network to MTN network and it connected to pub.dartlang.org and resolved. I am using WINDOWS |
hi |
This a straight forward solution, just get a VPN and use US IP address and you will be fine. Using Free version of ProtonVPN with free US IP worked for me. Flutter Doctor and Pub Get issues resolved instantly |
I am trying to build an application using the Flutter SDK, but on running
flutter packages get
in the application's directory, what I get isThis was initially reported on Flutter's issues page here, but I was directed to post the issue here.
I am not behind any proxy connection, and am located in Nigeria. A fellow Nigerian also complained about this on stackoverflow.
flutter doctor -v
printsSolution
Edited by member of this repository: This is not a solution, hence, I have deleted it as it was confusing people -- see previous version of this common on github, if you really want to know what it said. Notice that
https://dartlang-pub-dev.appspot.com/
is a staging site with outdated data, do not use it!The text was updated successfully, but these errors were encountered: