How to access uploadSequenceToken variable from response(DescribeLogStreamResponse) object #574
Unanswered
RachaelSMathew
asked this question in
Q&A
Replies: 1 comment 1 reply
-
There are a number of issues with your code above. First any error thrown in the logClient.describeLogStreams(describeLogStreamsRequest)
.flatMap { response in
logClient.putEventStreams(...)
}
.flatMapErrorThrowing { error in
// deal with error
} Reading the SwiftNIO docs on EventLoopFuture may help. Secondly you are trying to catch an error from the Once you have a error.context.additionalFields["expectedSequenceToken"] |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When I call describeLogStreams I am getting a nil value for the uploadSequenceToken.
So, I am trying to catch the CloudWatchErrorType.invalidNextToken error so that I can get the uploadSequenceToken value. To produce the CloudWatchErrorType.invalidNextToken error I need to access the uploadSequenceToken from the response or DescribeLogStreamResponse object.
Beta Was this translation helpful? Give feedback.
All reactions