Skip to content

DNS issue with pub.dev from Myanmar #5024

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

Closed
bksubhuti opened this issue Aug 15, 2021 · 14 comments
Closed

DNS issue with pub.dev from Myanmar #5024

bksubhuti opened this issue Aug 15, 2021 · 14 comments

Comments

@bksubhuti
Copy link

  • Explain the issue,
    I need to use a vpn in order to get into pub.dev.. but it is a pain because the vpn ruins some of my phone connectivity with my computer while developing.
    need to use a vpn to get to pub.dev from Myanmar.
    Please don't block it.

api.dart.dev ----works fine
flutter.dev ----works fine
Steps to Reproduce

...set a vpn to myanmar (haha) and see if it loads. or call me and I'll verify it.
...some of your other websites..okay.
api.dart.dev ----works fine
flutter.dev ----works fine
  • Link to screenshot.
    Nothing loads so there is no screenshot to give..
    I could show you an empty ping.. but just believe me.
    However, often people are on the old embargo for Myanmar (or new one coming), and they often forget to turn access to us back on.
// Write example code here
@isoos
Copy link
Collaborator

isoos commented Aug 15, 2021

@bksubhuti: for further debugging, please download and run this script, and copy-paste the output here:
https://github.com/dart-lang/pub-dev/blob/master/app/bin/tools/check_domain_access.dart

@bksubhuti
Copy link
Author

Is there a timeout on this code? It just waits.

@bksubhuti
Copy link
Author

Untitled-2.dart: Warning: Interpreting this as package URI, 'package:buddhist_sun/Untitled-2.dart'.
Testing host resolves...
^C
bhante@subhuntu:/mnt/Data/git/buddhist_sun/lib$

@isoos
Copy link
Collaborator

isoos commented Aug 15, 2021

Is there a timeout on this code? It just waits.

That's a new symptom, so far it was usually failing fast. I guess your ISP / country is swallowing some packages, even the ones that can make it fail fast. We should add timeouts...

As a temporary solution to access pub.dev, you could try the Chinese Flutter mirror:

PUB_HOSTED_URL=https://pub.flutter-io.cn pub get

@bksubhuti
Copy link
Author

Ironic..but the isp (mytel) owned by "the leader" is totally open (even Facebook works) while the other Telco companies require a special vpn (not a normal ones..psiphon or 1111. I'm stuck with mytel because Linux doesn't have special VPNs like those. And you don't need VPN anyway.

However.. it is needed for
pub.dev and news.google.com (desktop only)

I do think it is a regional DNS thing. I experienced this before with digitalpalireader.online. It was served by Microsoft and the admin was able to fix it. (This was before the coup)
However , unlikely that pub.dev is not hosted by Google. 😇

I think that it is a DNS and server setting.

@bksubhuti
Copy link
Author

How to set up the Chinese pin dev in vscode and AS?

@bksubhuti
Copy link
Author

bksubhuti commented Aug 16, 2021

pub get works without vpn.. without the environment variable. I tried that but it was slow and trying to reget everything, so i got rid of it and it worked fine. so I guess I'll just use the mirror site for getting the information.

@isoos
Copy link
Collaborator

isoos commented Aug 16, 2021

@isoos
Copy link
Collaborator

isoos commented Aug 17, 2021

Copying the output from the PR:

bhante@subhuntu:/mnt/Data/git/buddhist_sun$ dart run lib/Untitled-1.dart
lib/Untitled-1.dart: Warning: Interpreting this as package URI, 'package:buddhist_sun/Untitled-1.dart'.
Testing host resolves...
- pub.dev IPv4 resolve and connect succeeded: 0 / 4
- pub.dev IPv6 resolve and connect succeeded: 0 / 4
- pub.dartlang.org IPv4 resolve and connect succeeded: 1 / 1
- pub.dartlang.org IPv6 resolve and connect succeeded: 0 / 1
- storage.googleapis.com IPv4 resolve and connect succeeded: 6 / 6
- storage.googleapis.com IPv6 resolve and connect succeeded: 0 / 4
Testing one connection per request...
Unhandled exception:
TimeoutException after 0:00:15.000000: Future not completed
bhante@subhuntu:/mnt/Data/git/buddhist_sun$ 

@bksubhuti
Copy link
Author

sorry.. clicked on the wrong item... I guess that if I have problems.. it is an ipv6 compatibility issue?

@isoos
Copy link
Collaborator

isoos commented Aug 17, 2021

@bksubhuti: the site should work with IPv4 just fine, however you can't resolve the pub.dev domain. As a workaround, could you try to use the Google public DNS servers (e.g. 8.8.8.8)? https://developers.google.com/speed/public-dns/docs/using

@isoos
Copy link
Collaborator

isoos commented Aug 29, 2021

@bksubhuti did you have any success with different DNS settings?

@bksubhuti
Copy link
Author

I ha e not been able to get DNS to work on Ubuntu. It loads nothing when I do it. I have been using the china mirror.
However..fyi. The Chinese mirror does not allow likes or logon.

@sigurdm
Copy link
Contributor

sigurdm commented Sep 9, 2021

Not sure we can do much more. Closing for now.

@sigurdm sigurdm closed this as completed Sep 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants