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

Error: HTTPClientError.remoteConnectionClosed #23

Open
Sammcb opened this issue Oct 3, 2023 · 3 comments
Open

Error: HTTPClientError.remoteConnectionClosed #23

Sammcb opened this issue Oct 3, 2023 · 3 comments
Labels
good first issue Good for newcomers

Comments

@Sammcb
Copy link

Sammcb commented Oct 3, 2023

Hi! I am trying to cross compile for ubuntu x86_64 and arm64 architectures. I followed the steps on the readme and cloned the repo and ran swift run swift-sdk-generator.

However, I am seeing this output:

Parsing Ubuntu packages list...
Downloading 11 Ubuntu packages...
Error: HTTPClientError.remoteConnectionClosed

Edit: And running again with verbose output:

$ swift run swift-sdk-generator -v
Building for debugging...
Build complete! (0.14s)

Looking up configuration values...
uname -m
sw_vers -productVersion

Checking packages cache...
openssl dgst -sha256 /<folder>/swift-sdk-generator/Artifacts/host_swift_5.9-RELEASE_arm64-apple-macosx14.0.pkg
openssl dgst -sha256 /<folder>/swift-sdk-generator/Artifacts/host_llvm_16.0.5_arm64-apple-macosx14.0.tar.xz
openssl dgst -sha256 /<folder>/swift-sdk-generator/Artifacts/target_swift_5.9-RELEASE_arm64-unknown-linux-gnu.tar.gz

Parsing Ubuntu packages list...
gzip -cd
gzip -cd
gzip -cd
Downloading 11 Ubuntu packages...
Error: HTTPClientError.remoteConnectionClosed

Curious if this is an issue or if I am doing something wrong. I am running this on an M1 Pro Mac on macOS Sonoma with swift 5.9.
Output of uname -a: Darwin <local host>.local 23.0.0 Darwin Kernel Version 23.0.0: <date>; root:xnu-10002.1.13~1/RELEASE_ARM64_T6000 arm64
Output of swift --version:

swift-driver version: 1.87.1 Apple Swift version 5.9 (swiftlang-5.9.0.128.108 clang-1500.0.40.1)
Target: arm64-apple-macosx14.0

SHA of swift-sdk-generator: 46cc742.

Thanks!

@wxyjay
Copy link

wxyjay commented Apr 16, 2024

I also encountered the same problem, did you solve it?

@wxyjay
Copy link

wxyjay commented Apr 16, 2024

I tried again a few times and he succeeded.

@MaxDesiatov MaxDesiatov added the good first issue Good for newcomers label Apr 16, 2024
@MaxDesiatov
Copy link
Contributor

Seems intermittent and we probably should have a retry logic in place. Could be a good first issue for new contributors to add that retry logic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants