Last 2 days I'm trying to create flutter project but failed to receive the package from pub.dartlang.org
Also, I check Ping. it says request timeout. What should I do now? Looks like there is some network problem between my network and dart network. Please help me out.
H:apps>flutter create app_b
Creating project app_b...
app_b.gitignore (created)
app_b.idealibrariesDart_SDK.xml (created)
app_b.idealibrariesFlutter_for_Android.xml (created)
app_b.idealibrariesKotlinJavaRuntime.xml (created)
app_b.ideamodules.xml (created)
app_b.idearunConfigurationsmain_dart.xml (created)
app_b.ideaworkspace.xml (created)
app_b.metadata (created)
app_bandroidappbuild.gradle (created)
app_bandroidappsrcmainjavacomexampleappbMainActivity.java (created)
app_bandroidbuild.gradle (created)
app_bandroidapp_b_android.iml (created)
app_bandroidappsrcmainAndroidManifest.xml (created)
app_bandroidappsrcmainresdrawablelaunch_background.xml (created)
app_bandroidappsrcmainresmipmap-hdpiic_launcher.png (created)
app_bandroidappsrcmainresmipmap-mdpiic_launcher.png (created)
app_bandroidappsrcmainresmipmap-xhdpiic_launcher.png (created)
app_bandroidappsrcmainresmipmap-xxhdpiic_launcher.png (created)
app_bandroidappsrcmainresmipmap-xxxhdpiic_launcher.png (created)
app_bandroidappsrcmainresvaluesstyles.xml (created)
app_bandroidgradlewrappergradle-wrapper.properties (created)
app_bandroidgradle.properties (created)
app_bandroidsettings.gradle (created)
app_biosRunnerAppDelegate.h (created)
app_biosRunnerAppDelegate.m (created)
app_biosRunnermain.m (created)
app_biosRunner.xcodeprojproject.pbxproj (created)
app_biosRunner.xcodeprojxcshareddataxcschemesRunner.xcscheme (created)
app_biosFlutterAppFrameworkInfo.plist (created)
app_biosFlutterDebug.xcconfig (created)
app_biosFlutterRelease.xcconfig (created)
app_biosRunnerAssets.xcassetsAppIcon.appiconsetContents.json (created)
app_biosRunnerAssets.xcassetsAppIcon.[email protected] (created)
app_biosRunnerAssets.xcassetsAppIcon.[email protected] (created)
app_biosRunnerAssets.xcassetsAppIcon.[email protected] (created)
app_biosRunnerAssets.xcassetsAppIcon.[email protected] (created)
app_biosRunnerAssets.xcassetsAppIcon.[email protected] (created)
app_biosRunnerAssets.xcassetsAppIcon.[email protected] (created)
app_biosRunnerAssets.xcassetsAppIcon.[email protected] (created)
app_biosRunnerAssets.xcassetsAppIcon.[email protected] (created)
app_biosRunnerAssets.xcassetsAppIcon.[email protected] (created)
app_biosRunnerAssets.xcassetsAppIcon.[email protected] (created)
app_biosRunnerAssets.xcassetsAppIcon.[email protected] (created)
app_biosRunnerAssets.xcassetsAppIcon.[email protected] (created)
app_biosRunnerAssets.xcassetsAppIcon.[email protected] (created)
app_biosRunnerAssets.xcassetsAppIcon.[email protected] (created)
app_biosRunnerAssets.xcassetsAppIcon.appiconsetIcon-App-83.5x83.[email protected] (created)
app_biosRunnerAssets.xcassetsLaunchImage.imagesetContents.json (created)
app_biosRunnerAssets.xcassetsLaunchImage.imagesetLaunchImage.png (created)
app_biosRunnerAssets.xcassetsLaunchImage.[email protected] (created)
app_biosRunnerAssets.xcassetsLaunchImage.[email protected] (created)
app_biosRunnerAssets.xcassetsLaunchImage.imagesetREADME.md (created)
app_biosRunnerBase.lprojLaunchScreen.storyboard (created)
app_biosRunnerBase.lprojMain.storyboard (created)
app_biosRunnerInfo.plist (created)
app_biosRunner.xcodeprojproject.xcworkspacecontents.xcworkspacedata (created)
app_biosRunner.xcworkspacecontents.xcworkspacedata (created)
app_blibmain.dart (created)
app_bapp_b.iml (created)
app_bpubspec.yaml (created)
app_bREADME.md (created)
app_btestwidget_test.dart (created)
Running "flutter packages get" in app_b...
Got socket error trying to find package cupertino_icons at https://pub.dartlang.org.
pub get failed (69) -- attempting retry 1 in 1 second...
You can see more details here https://github.com/flutter/flutter/issues/25433
This sounds rather mysterious.
Can you access https://pub.dartlang.org from a browser?
No I can't. But If I change the IP/Location I can access :(
Feels like pub.dartlang site block our country and few other countries too to access pub.dartlang.org :(
Can you disclose what your country is?
And what other countries you are thinking about
I'm from Bangladesh
It was working totally fine. But last 2 days I can't get packages or ping pub.dartlang.org :(
I can see same problem Nigeria too
If you search you can found lots of same issue in github/stackoverflow but for now I can understand that, pub.dartlang block our country network :( Please help me out.
Screenshot http://prntscr.com/lvyzs2
We had similar report from other places, e.g.:
https://github.com/dart-lang/pub-dartlang-dart/issues/1767
If you can reach https://dartlang-pub.appspot.com/ but you can't reach https://www.dartlang.org/ it is likely that the issue is at your ISP (internet provider).
I can access both sites but can't access/reach https://pub.dartlang.org/
Sorry, I meant to write https://news.dartlang.org/ can you access that?
NO I can't
@isoos perhaps you can make sense about the comments about VPN in https://github.com/flutter/flutter/issues/25433
Should I contact my ISP? Do they fix that network issue? Cause hard to working with VPN.
I have insufficient knowledge about what is happening here, but seems to be that traffic routing at the IPS level may be misconfigured, and VPN helps in that because you end up using a different ISP at the end of the VPN connection.
@crajygemer connecting to the ISP is important, but I doubt that they will act fast. VPN or switching ISPs could work. (My Hungarian ISP's mobile service does not route international SMS messages for years, despite reported it many times)
Thanks for your comment @isoos but could you please tell me what should be my next step :(
Thank you But VPN must be the bad choice for work. Cause it makes internet slow. So I'll contact ISP and get back to here again. Thanks for your time @isoos
Quick question does api.dartlang.org work?
@crajygemer, could you try:
curl -v https://pub.dartlang.org -4
curl -v https://pub.dartlang.org --resolve 'pub.dartlang.org:443:172.217.14.211'
@sortie suggested that here: https://github.com/dart-lang/pub-dartlang-dart/issues/1767#issuecomment-437531730 if that works, then it might be that there is something wrong with your IPv6 setup (or your ISPs IPv6 setup).
Finally, I update DNS based on this instructions. Now I can get packages from pub.dartlang.org. Also, I can visit the site also, But still can't visit news.dartlang.org but won't necessarily. Source URL is given below.
https://www.wiknix.com/how-to-fix-err_connection_timed_out-error/
Thanks to all :)
Contributing to the above, from Nigeria and I can confirm that indeed an ISP is blocked from accessing Pub and the user will need a vpn to access this.
Some other ISPs work fine.
Same issue here from China. I have tried all kinds of VPNs.
Most helpful comment
Finally, I update DNS based on this instructions. Now I can get packages from pub.dartlang.org. Also, I can visit the site also, But still can't visit news.dartlang.org but won't necessarily. Source URL is given below.
https://www.wiknix.com/how-to-fix-err_connection_timed_out-error/
Thanks to all :)