[英]When listing of objects using the IBM Cloud Object Storage CLI, and also in my Java program, I get a TLS handshake error
I can list my buckets in the COS CLI:我可以在 COS CLI 中列出我的存储桶:
ibmcloud cos buckets
OK
2 buckets found in your account:
Name Date Created
cloud-object-storage-kc-cos-standard-8e7 May 20, 2020 at 14:40:37
cloud-object-storage-kc-cos-standard-nw6 Dec 14, 2020 at 16:35:48
But if I try to list the objects in the second bucket I get the following:但是,如果我尝试列出第二个存储桶中的对象,我会得到以下信息:
ibmcloud cos objects -bucket cloud-object-storage-kc-cos-standard-nw6 -region us-east
FAILED
RequestError: send request failed
caused by: Get https://cloud-object-storage-kc-cos-standard-nw6.s3.us-east.cloud-object-storage.appdomain.cloud/: tls: first record does not look like a TLS handshake
I do not know why I would get a TLS handshake error on such a call.我不知道为什么在这样的调用中会收到 TLS 握手错误。 If I try any other region, I get a "The specified bucket was not found in your IBM Cloud account. This may be because you provided the wrong region. Provide the bucket's correct region and try again."
如果我尝试任何其他区域,我会收到“在您的 IBM Cloud 帐户中找不到指定的存储桶。这可能是因为您提供了错误的区域。请提供存储桶的正确区域,然后重试。”
My Cloud Object Storage configuration is (X's are redacted data):
Last Updated Tuesday, December 15 2020 at 11:16:46
Default Region us-geo
Download Location /Users/xxxxxx@us.ibm.com/Downloads
CRN b6cc5f87-5867-4736-XXXX-cf70c34a1fb7
AccessKeyID
SecretAccessKey
Authentication Method IAM
URL Style VHost
Service Endpoint
To find the exact location of your COS bucket, you can try running the below command要查找您的 COS 存储桶的确切位置,您可以尝试运行以下命令
ibmcloud cos buckets-extended
buckets-extended: List all the extended buckets with pagination support.
buckets-extended:列出所有支持分页的扩展桶。
Pass the Location Constraint
for the bucket in the below command在以下命令中传递存储桶的
Location Constraint
ibmcloud cos objects --bucket vmac-code-engine-bucket --region us-standard
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.