简体   繁体   English

使用 IBM Cloud Object 存储 CLI 以及在我的 Java 程序中列出对象时,我收到 TLS 握手错误

[英]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.

相关问题 使用 CLI 在 IBM Cloud Object 存储桶中配置 CORS - Configure CORS in IBM Cloud Object Storage Bucket using CLI 如何使用CLI为IBM Cloud Object Storage创建HMAC凭证? - How do I create HMAC credentials for IBM Cloud Object Storage using the CLI? 有用于IBM云对象存储(IBM COS)的Java SDK吗?在哪里可以找到一些示例? - Are there any for java sdks for IBM cloud object storage (IBM COS), and where can I find some examples? 快照 IBM Cloud Object Storage - Snapshot IBM Cloud Object Storage 如何使用 Node.js 上传图片到 IBM Cloud object 存储(COS)? - How to upload an image to IBM Cloud object storage (COS) using Node.js? IBM 云存储与 PHP - IBM cloud storage with PHP 使用aws-cli将对象从S3复制到Google云存储 - Copy objects from S3 to google cloud storage using aws-cli 直接从 IBM COS(云对象存储)流式传输? - Streaming directly from IBM COS (Cloud Object Storage)? 为什么我无法使用具有管理员访问权限和正确策略集的 AWS Amplify storage.get 访问我的 s3 私有对象。 收到 403 错误 - Why can't I access my s3 private objects using AWS Amplify storage.get with Admin access and proper policy set. Getting 403 error 如何使用aws-cli访问Google Cloud Storage存储桶 - How to access Google Cloud Storage bucket using aws-cli
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM