TimeStream Query #1417
-
Hi all, I don't know if anyone else has experienced this, but I'm not able to pull back any data using TimeStreamQuery using this SDK. I have no issues when using the CLI or Postman to retrieve this same TimeStream query. Also, the SDK works fine for me for all of the other libraries and calls I've been making with it. Below is a copy of the code I'm using to test
In the console, I'm getting a I'm getting
Any help or advice would be greatly appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Thank you for your question! We will investigate and get back to you here when we have more info. |
Beta Was this translation helpful? Give feedback.
-
The TimestreamQuery service requires that the API endpoint for queries be discovered using the DescribeEndpoints action. See the docs for DescribeEndpoints here. Because the AWS SDK for Swift is still in developer preview and not yet feature complete, automatic endpoint discovery is not yet implemented. Eventually endpoint discovery will be performed transparently by the SDK when needed, but as a temporary workaround you can call DescribeEndpoints directly before querying, then use the returned endpoint to create a client with the right endpoint for querying. Here is sample code that will retrieve records from a Timestream sample database:
Please try this approach and see if this fixes your issue. |
Beta Was this translation helpful? Give feedback.
The TimestreamQuery service requires that the API endpoint for queries be discovered using the DescribeEndpoints action. See the docs for DescribeEndpoints here.
Because the AWS SDK for Swift is still in developer preview and not yet feature complete, automatic endpoint discovery is not yet implemented. Eventually endpoint discovery will be performed transparently by the SDK when needed, but as a temporary workaround you can call DescribeEndpoints directly before querying, then use the returned endpoint to create a client with the right endpoint for querying.
Here is sample code that will retrieve records from a Timestream sample database: