-
Notifications
You must be signed in to change notification settings - Fork 1.7k
pub get - Connection closed before full header was received #16910
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
Comments
I can't reproduce this. Usually errors like this indicate something going wrong in the network between your computer and the pub server. The error should be reported at least somewhat better, though... can you re-run with "--verbose" and post the output here? |
This comment was originally written by [email protected] I don't think this is a network issue, since:
With --verbose, I get another failure: C:\tmp\devel\negentropia\wwwroot\dart>c:\dart\dart-sdk\bin\pub get --verbose 2>pub_get_verbose_stderr.txt See pub_get_verbose_stderr.txt attached. Attachment: |
It looks like you're seeing exponential version-resolution behavior due to some conflicting constraints. I'm looking into it to see if I can figure out exactly why this is happening. |
All right, I've figured out the conflict: * "spectre" depends on "polymer"
Thus, there's a version conflict between stack_trace's and intl's path dependency. The real culprit here, though, are the "stats" and "plummbur_kruk" packages. They both have extremely tight dependencies: stats depends on plummbur_kruk ">=0.1.0 <0.1.1", which effectively only allows version 0.1.0; plummbur_kruk depends on intl ">=0.9.0 <0.9.1", which effectively only allows version 0.9.0. Recent versions of intl (0.9.4 is the most recent) are compatible with path >=1.0.0, but you can't use them because of plummbur_kruk's too-tight dependency, nor could you use a new version of plummbur_kruk due to stats' too-tight dependency. I suggest you contact the maintainers of these packages and ask them to fix their dependencies. I've filed issue #16961 to track the exponential behavior. Added Done label. |
This issue has been moved to dart-lang/pub#869. |
I solved mine too by changing the version number of the affected dependency to "any" |
This issue was originally filed by [email protected]
pub get:
Resolving dependencies.......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................Connection closed before full header was received, uri = https://pub.dartlang.org/api/packages/polymer/versions/0.8.10.
What steps will reproduce the problem?
spectre:
git: https://github.com/johnmccutchan/spectre.git
What is the expected output?
No pub get errors.
What do you see instead?
Connection closed before full header was received, uri = https://pub.dartlang.org/api/packages/polymer/versions/0.8.10.
What version of the product are you using?
Build 32712
Dart Editor version 1.2.0.dev_05_08 (DEV)
Dart SDK version 1.2.0-dev.5.8
On what operating system?
64-bit Windows 7
The text was updated successfully, but these errors were encountered: