OCI Streaming: how to to Consume Messages after Setting Up a New Stream with the Python SDK
I tried several approaches but none seem to work. I'm having trouble consuming messages from a newly created OCI Streaming service... I set up a stream using the Python SDK version 2.5.0, but when I try to read from the stream, I'm getting an behavior: `oci.exceptions.ServiceError: (404, 'Stream not found')`. I followed the documentation to create the stream, so I'm not sure where I went wrong. The relevant code for creating the stream looks like this: ```python import oci stream_client = oci.streaming.StreamClient(config) stream_details = oci.streaming.models.CreateStreamDetails( name='my_test_stream', compartment_id='my_compartment_id', partition_count=1, retention_period_in_hours=24 ) stream = stream_client.create_stream(stream_details) print('Stream created:', stream.data.id) ``` After creating the stream, I use the following code to consume messages: ```python stream_id = stream.data.id consumer_client = oci.streaming.StreamClient(config) # Attempting to get the messages messages = consumer_client.get_messages(stream_id) ``` Despite the stream being created successfully, I need to seem to read any messages, and I keep getting the `Stream not found` behavior. I've double-checked that I'm using the correct compartment ID and stream ID. I've also verified that the stream exists via the OCI console, but I still need to access it programmatically. Any insights on what might be causing this scenario or how to debug it further would be greatly appreciated! Cheers for any assistance! Any advice would be much appreciated.