Open ErkkaLehmus opened 6 months ago
Same problem. Looks like it depends on package it sends. One of my pkgs notarizes ok every time, other one fails every time with the same "Error: s3 upload error: unhandled error".
Logs are same with yours.
UPD: Cloned and build a main branch, it shows 0.27.0 version, but managed to upload a binary.
Thanks for the reports.
The unhandled error
in Error: s3 upload error: unhandled error
is coming from the aws-sdk-s3
crate. It corresponds to an Error::Unhandled
enum variant when the S3 API response doesn't expose an error code in the API response metadata. But, that may be due to how we're normalizing the error type in our code:
.map_err(|e| AppleCodesignError::AwsS3Error(Box::new(aws_sdk_s3::Error::from(e))))
The aws_sdk_s3::Error::from()
conversion code looks like this:
impl From<crate::operation::put_object::PutObjectError> for Error {
fn from(err: crate::operation::put_object::PutObjectError) -> Self {
match err {
crate::operation::put_object::PutObjectError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
I think I'll tweak the error handling to hopefully preserve more details so we know what the actual error is. That will help with debugging and eventual fixing.
I am not sure if this is same or related to #84
Using apple-codesign 0.27.0 on linux command-line
rcodesign notary-submit --api-key-file ~/keys/mykey.json --staple MyGame.app.zip
fails with
I run it a few times, same result every time. And then with -vvv logging the output to a text file. It seems to succesfully send ClientHello to apple, receiving ServerHello, after which there is
After which there are two times clientHello and ServerHello with amazonaws.com, this time with
[2024-05-09T10:27:38Z DEBUG rustls::client::hs] ALPN protocol is Some(b"http/1.1")
until finally terminating with
Error: s3 upload error: unhandled error
I'm connected to the internet by a mobile broad-band, and what little I do understand, on the ISP side there is a proxy behind me and the rest of the world. And not sure if there is anything I can do about it.
I kind of a wanted to test the process with the official Apple tools to verify if there is a problem with my ISP, but unfortunately Apple is not happy with me running on 10.13.6 High Sierra, which is the highest my old macBook can do.