OCI Object Storage: scenarios 'The specified object does not exist' when using Pre-signed URLs in Python SDK
Could someone explain Quick question that's been bugging me - I'm currently working on a project where I need to upload files to OCI Object Storage and generate pre-signed URLs for accessing them later... However, I'm working with an scenario where I'm getting the behavior message 'The specified object does not exist' when trying to access the pre-signed URL shortly after creating the object. I've verified that the bucket and object names are correct, and I'm using the following code to generate the pre-signed URL: ```python import oci config = oci.config.from_file('~/.oci/config') object_storage_client = oci.object_storage.ObjectStorageClient(config) bucket_name = 'my_bucket' object_name = 'my_file.txt' # Uploading the object with open('my_file.txt', 'rb') as f: object_storage_client.put_object(bucket_name, object_name, f) # Generating the pre-signed URL url = object_storage_client.generate_presigned_url( 'get_object', namespace_name=config['tenancy'], bucket_name=bucket_name, object_name=object_name, expires_in=3600 ) print('Pre-signed URL:', url) ``` After creating the object and generating the URL, if I immediately try to access the URL using a browser or a tool like Postman, I see the behavior. I’ve also tried adding a sleep of a few seconds between the upload and access attempts, but the scenario continues. The version of OCI SDK I’m using is `2.36.0`. I’ve checked the OCI documentation and made sure that my permissions are properly set up to allow for both object uploads and pre-signed URL access. What could be causing this scenario? Is there a delay in the object being available that I need to account for, or could this be related to the SDK version I'm using? I'd really appreciate any guidance on this. I'm on Windows 10 using the latest version of Python. Thanks, I really appreciate it! For reference, this is a production service. Thanks for your help in advance!