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

dart pub get failed with an error ERR : Connection closed before full header was received #3307

Closed
ThaiBinhDuong1011 opened this issue Feb 7, 2022 · 3 comments

Comments

@ThaiBinhDuong1011
Copy link

Environment

  • pub version or flutter pub version: Pub 2.16.0

  • OS version: Linux Lenovo-ideapad-310-15ISK 5.13.0-28-generic pub upgrade creates symlinks to /root/.pub-cache/... #31~20.04.1-Ubuntu SMP Wed Jan 19 14:08:10 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

  • Are you using the Chinese community mirror or a corporate firewall?

Problem

<copy/paste pubspec.yaml>

Expected behavior

Actual behavior

--trace output

<copy/paste the full output>
@sigurdm
Copy link
Contributor

sigurdm commented Mar 10, 2022

Is this persistent (does it repeat every time you try to publish)?

Are you using a mirror? Did you set PUB_HOSTED_URL?

Can you try running: https://github.com/dart-lang/pub-dev/blob/master/app/bin/tools/check_domain_access.dart and post the output? That will give us more information about your network.

@sigurdm sigurdm added the needs-info Additional information needed from the issue author label Mar 10, 2022
@marandaneto
Copy link

marandaneto commented Mar 29, 2022

Running into the same error (for dart pub publish), https://github.com/getsentry/publish/runs/5723389484?check_suite_focus=true
I could reproduce that locally too (macOS), even using dart pub publish --dry-run, tried 2 more times and it worked, the connection was stable (locally only).

Testing host resolves...

  • pub.dev IPv4 resolve and connect succeeded: 4 / 4
  • pub.dev IPv6 resolve and connect succeeded: 4 / 4
  • pub.dartlang.org IPv4 resolve and connect succeeded: 1 / 1
  • pub.dartlang.org IPv6 resolve and connect succeeded: 1 / 1
  • storage.googleapis.com IPv4 resolve and connect succeeded: 16 / 16
  • storage.googleapis.com IPv6 resolve and connect succeeded: 16 / 16
    Testing one connection per request...
    Testing connection reuse...
  • iteration 1/10...
  • iteration 2/10...
  • iteration 3/10...
  • iteration 4/10...
  • iteration 5/10...
  • iteration 6/10...
  • iteration 7/10...
  • iteration 8/10...
  • iteration 9/10...
  • iteration 10/10...
    Done.

@sigurdm
Copy link
Contributor

sigurdm commented Jun 1, 2023

We don't have enough info to go on here. Closing as stale. Please open a new issue if this is persisting.

@sigurdm sigurdm closed this as not planned Won't fix, can't repro, duplicate, stale Jun 1, 2023
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