Comments (14)
@danispir Thanks for the bigger snippet. The logSamples
is coming back different then the .NET SDK is expecting. I have a query to the CloudWatch Logs team going on to understand why that is.
from aws-sdk-net.
Do you see the same error when using the AWS CLI? For example: aws logs list-anomalies --anomaly-detector-arn "serverArn"
. Our CloudWatch Logs client is generated, we don't modify the response that's coming from the service.
from aws-sdk-net.
Hi @dscpinheiro. Thanks for your reply.
I tried, but the method list-anomalies is not available at all. Error aws: error: argument operation: Invalid choice
I also tried it with Python Boto3 and I'm getting the message list_anomalies attribute does not exists. Although it is available in their documentation.
My assumption is that this method has been hidden entirely?
from aws-sdk-net.
No, the API is public but it was released recently, during last year's re:Invent: https://github.com/aws/aws-sdk-net/blob/main/changelogs/SDK.CHANGELOG.2023.md#376930-2023-11-27-0424-utc.
It's available in the last version of the CLI, so you may have to update your version:
PS> aws --version
aws-cli/2.15.24 Python/3.11.6 Windows/10 exe/AMD64 prompt/off
PS> aws logs list-anomalies
{
"anomalies": []
}
from aws-sdk-net.
You were right. Now I can execute correctly aws logs list-anomalies command.
But from AWSSDK.NET in my .net 8 console app, I'm still getting same error. Any idea?
from aws-sdk-net.
@danispir Can you enable response logging by adding the following code at the startup of your test application and share the response JSON from the call. Be sure to redact anything sensitive in the response.
AWSConfigs.LoggingConfig.LogTo = LoggingOptions.Console;
AWSConfigs.LoggingConfig.LogResponses = ResponseLoggingOption.Always;
from aws-sdk-net.
Hello @normj. Below is the output I get. Since it seems that I do get the response, could be a deserialization issue when trying to deserialize LogSamples array of objects?
EnvironmentVariableInternalConfiguration 1|2024-03-01T10:49:25.354Z|INFO|The environment variable AWS_ENABLE_ENDPOINT_DISCOVERY was not set with a value.
EnvironmentVariableInternalConfiguration 2|2024-03-01T10:49:25.392Z|INFO|The environment variable AWS_MAX_ATTEMPTS was not set with a value.
EnvironmentVariableInternalConfiguration 3|2024-03-01T10:49:25.393Z|INFO|The environment variable AWS_RETRY_MODE was not set with a value.
EnvironmentVariableInternalConfiguration 4|2024-03-01T10:49:25.398Z|INFO|The environment variable AWS_EC2_METADATA_SERVICE_ENDPOINT was not set with a value.
EnvironmentVariableInternalConfiguration 5|2024-03-01T10:49:25.398Z|INFO|The environment variable AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE was not set with a value.
EnvironmentVariableInternalConfiguration 6|2024-03-01T10:49:25.398Z|INFO|The environment variable AWS_EC2_METADATA_V1_DISABLED was not set with a value.
EnvironmentVariableInternalConfiguration 7|2024-03-01T10:49:25.398Z|INFO|The environment variable AWS_USE_DUALSTACK_ENDPOINT was not set with a value.
EnvironmentVariableInternalConfiguration 8|2024-03-01T10:49:25.398Z|INFO|The environment variable AWS_USE_FIPS_ENDPOINT was not set with a value.
EnvironmentVariableInternalConfiguration 9|2024-03-01T10:49:25.398Z|INFO|The environment variable AWS_IGNORE_CONFIGURED_ENDPOINT_URLS was not set with a value.
EnvironmentVariableInternalConfiguration 10|2024-03-01T10:49:25.399Z|INFO|The environment variable AWS_DISABLE_REQUEST_COMPRESSION was not set with a value.
EnvironmentVariableInternalConfiguration 11|2024-03-01T10:49:25.399Z|INFO|The environment variable AWS_REQUEST_MIN_COMPRESSION_SIZE_BYTES was not set with a value.
EnvironmentVariableInternalConfiguration 12|2024-03-01T10:49:25.399Z|INFO|The environment variable AWS_SDK_UA_APP_ID was not set with a value.
ProfileInternalConfiguration 13|2024-03-01T10:49:25.442Z|INFO|There is no defaults_mode set in the profile named 'default' in store Amazon.Runtime.CredentialManagement.CredentialProfileStoreChain
ProfileInternalConfiguration 14|2024-03-01T10:49:25.443Z|INFO|There is no endpoint_discovery_enabled set in the profile named 'default' in store Amazon.Runtime.CredentialManagement.CredentialProfileStoreChain
ProfileInternalConfiguration 15|2024-03-01T10:49:25.443Z|INFO|There is no retry_mode set in the profile named 'default' in store Amazon.Runtime.CredentialManagement.CredentialProfileStoreChain
ProfileInternalConfiguration 16|2024-03-01T10:49:25.443Z|INFO|There is no max_attempts set in the profile named 'default' in store Amazon.Runtime.CredentialManagement.CredentialProfileStoreChain
ProfileInternalConfiguration 17|2024-03-01T10:49:25.443Z|INFO|There is no ec2_metadata_service_endpoint set in the profile named 'default' in store Amazon.Runtime.CredentialManagement.CredentialProfileStoreChain
ProfileInternalConfiguration 18|2024-03-01T10:49:25.444Z|INFO|There is no ec2_metadata_service_endpoint_mode set in the profile named 'default' in store Amazon.Runtime.CredentialManagement.CredentialProfileStoreChain
ProfileInternalConfiguration 19|2024-03-01T10:49:25.444Z|INFO|There is no ec2_metadata_v1_disabled set in the profile named 'default' in store Amazon.Runtime.CredentialManagement.CredentialProfileStoreChain
ProfileInternalConfiguration 20|2024-03-01T10:49:25.445Z|INFO|There is no use_dualstack_endpoint set in the profile named 'default' in store Amazon.Runtime.CredentialManagement.CredentialProfileStoreChain
ProfileInternalConfiguration 21|2024-03-01T10:49:25.445Z|INFO|There is no use_fips_endpoint set in the profile named 'default' in store Amazon.Runtime.CredentialManagement.CredentialProfileStoreChain
ProfileInternalConfiguration 22|2024-03-01T10:49:25.445Z|INFO|ignore_configured_endpoint_urls found in profile 'default' in store Amazon.Runtime.CredentialManagement.CredentialProfileStoreChain
ProfileInternalConfiguration 23|2024-03-01T10:49:25.446Z|INFO|There is no endpoint_url set in the profile named 'default' in store Amazon.Runtime.CredentialManagement.CredentialProfileStoreChain
ProfileInternalConfiguration 24|2024-03-01T10:49:25.446Z|INFO|There is no disable_request_compression set in the profile named 'default' in store Amazon.Runtime.CredentialManagement.CredentialProfileStoreChain
ProfileInternalConfiguration 25|2024-03-01T10:49:25.446Z|INFO|There is no request_min_compression_size_bytes set in the profile named 'default' in store Amazon.Runtime.CredentialManagement.CredentialProfileStoreChain
ProfileInternalConfiguration 26|2024-03-01T10:49:25.446Z|INFO|There is no sdk_ua_app_id set in the profile named 'default' in store Amazon.Runtime.CredentialManagement.CredentialProfileStoreChain
DefaultConfigurationProvider 27|2024-03-01T10:49:25.449Z|INFO|Resolved DefaultConfigurationMode for RegionEndpoint [*****] to [Legacy].
AmazonCloudWatchLogsClient 28|2024-03-01T10:49:27.074Z|DEBUG|Received response (truncated to 1024 bytes): [{"anomalies":[{"active":false,"anomalyDetectorArn":"arn:aws:logs:*********************","anomalyId":"a*******************************3c","description":"Unexpected pattern detected with severity ERROR","firstSeen":1708541760000,"histogram":{"1708524000000":3,"1708542000000":230,"1708560000000":269,"1708578000000":381,"1708596000000":381,"1708614000000":715,"1708632000000":725,"1708650000000":640,"1708668000000":718,"1708686000000":646,"1708704000000":716,"1708722000000":719,"1708740000000":712,"1708758000000":712,"1708776000000":719,"1708794000000":725,"1708812000000":710,"1708830000000":711,"1708848000000":716,"1708866000000":709,"1708884000000":717,"1708902000000":563,"1708920000000":235,"1708938000000":245,"1708956000000":240,"1708974000000":240,"1708992000000":241,"1709010000000":240,"1709028000000":240,"1709046000000":239,"1709064000000":233,"1709082000000":238,"1709100000000":239,"1709118000000":269,"1709136000000":479,"1709154000000":478,"17091720]
AmazonCloudWatchLogsClient 29|2024-03-01T10:49:27.128Z|ERROR|An exception of type AmazonUnmarshallingException was handled in ErrorHandler. --> Amazon.Runtime.AmazonUnmarshallingException: Error unmarshalling response back from AWS. Request ID: ********-****-4b72-81db-b68**465d2**, Last Parsed Path: /anomalies//logSamples//, HTTP Status Code: 200 OK
---> Amazon.Runtime.AmazonClientException: We expected a VALUE token but got: ObjectStart
at Amazon.Runtime.Internal.Transform.JsonUnmarshallerContext.ReadText()
at Amazon.Runtime.Internal.Transform.SimpleTypeUnmarshaller`1.Unmarshall(JsonUnmarshallerContext context)
at Amazon.Runtime.Internal.Transform.StringUnmarshaller.Unmarshall(JsonUnmarshallerContext context)
at Amazon.Runtime.Internal.Transform.ListUnmarshaller`2.Unmarshall(JsonUnmarshallerContext context)
at Amazon.CloudWatchLogs.Model.Internal.MarshallTransformations.AnomalyUnmarshaller.Unmarshall(JsonUnmarshallerContext context)
at Amazon.Runtime.Internal.Transform.ListUnmarshaller`2.Unmarshall(JsonUnmarshallerContext context)
at Amazon.CloudWatchLogs.Model.Internal.MarshallTransformations.ListAnomaliesResponseUnmarshaller.Unmarshall(JsonUnmarshallerContext context)
at Amazon.Runtime.Internal.Transform.JsonResponseUnmarshaller.Unmarshall(UnmarshallerContext input)
--- End of inner exception stack trace ---
at Amazon.Runtime.Internal.Transform.JsonResponseUnmarshaller.Unmarshall(UnmarshallerContext input)
at Amazon.Runtime.Internal.Transform.ResponseUnmarshaller.UnmarshallResponse(UnmarshallerContext context)
at Amazon.Runtime.Internal.Unmarshaller.UnmarshallResponse(UnmarshallerContext context, IRequestContext requestContext)
at Amazon.Runtime.Internal.Unmarshaller.UnmarshallAsync(IExecutionContext executionContext)
at Amazon.Runtime.Internal.Unmarshaller.InvokeAsync[T](IExecutionContext executionContext)
at Amazon.Runtime.Internal.ErrorHandler.InvokeAsync[T](IExecutionContext executionContext)
AmazonCloudWatchLogsClient 30|2024-03-01T10:49:27.365Z|INFO|AmazonUnmarshallingException making request ListAnomaliesRequest to https://logs.*****.amazonaws.com/. Attempting retry 1 of 4.
AmazonCloudWatchLogsClient 31|2024-03-01T10:49:28.190Z|DEBUG|Received response (truncated to 1024 bytes): [{"anomalies":[{"active":false,"anomalyDetectorArn":"arn:aws:logs:*********************","anomalyId":"a*******************************3c","description":"Unexpected pattern detected with severity ERROR","firstSeen":1708541760000,"histogram":{"1708524000000":3,"1708542000000":230,"1708560000000":269,"1708578000000":381,"1708596000000":381,"1708614000000":715,"1708632000000":725,"1708650000000":640,"1708668000000":718,"1708686000000":646,"1708704000000":716,"1708722000000":719,"1708740000000":712,"1708758000000":712,"1708776000000":719,"1708794000000":725,"1708812000000":710,"1708830000000":711,"1708848000000":716,"1708866000000":709,"1708884000000":717,"1708902000000":563,"1708920000000":235,"1708938000000":245,"1708956000000":240,"1708974000000":240,"1708992000000":241,"1709010000000":240,"1709028000000":240,"1709046000000":239,"1709064000000":233,"1709082000000":238,"1709100000000":239,"1709118000000":269,"1709136000000":479,"1709154000000":478,"17091720]
AmazonCloudWatchLogsClient 32|2024-03-01T10:49:28.236Z|ERROR|An exception of type AmazonUnmarshallingException was handled in ErrorHandler. --> Amazon.Runtime.AmazonUnmarshallingException: Error unmarshalling response back from AWS. Request ID: *****-a663-46fc-aa5c-*********, Last Parsed Path: /anomalies//logSamples//, HTTP Status Code: 200 OK
---> Amazon.Runtime.AmazonClientException: We expected a VALUE token but got: ObjectStart
at Amazon.Runtime.Internal.Transform.JsonUnmarshallerContext.ReadText()
at Amazon.Runtime.Internal.Transform.SimpleTypeUnmarshaller`1.Unmarshall(JsonUnmarshallerContext context)
at Amazon.Runtime.Internal.Transform.StringUnmarshaller.Unmarshall(JsonUnmarshallerContext context)
at Amazon.Runtime.Internal.Transform.ListUnmarshaller`2.Unmarshall(JsonUnmarshallerContext context)
at Amazon.CloudWatchLogs.Model.Internal.MarshallTransformations.AnomalyUnmarshaller.Unmarshall(JsonUnmarshallerContext context)
at Amazon.Runtime.Internal.Transform.ListUnmarshaller`2.Unmarshall(JsonUnmarshallerContext context)
at Amazon.CloudWatchLogs.Model.Internal.MarshallTransformations.ListAnomaliesResponseUnmarshaller.Unmarshall(JsonUnmarshallerContext context)
at Amazon.Runtime.Internal.Transform.JsonResponseUnmarshaller.Unmarshall(UnmarshallerContext input)
--- End of inner exception stack trace ---
at Amazon.Runtime.Internal.Transform.JsonResponseUnmarshaller.Unmarshall(UnmarshallerContext input)
at Amazon.Runtime.Internal.Transform.ResponseUnmarshaller.UnmarshallResponse(UnmarshallerContext context)
at Amazon.Runtime.Internal.Unmarshaller.UnmarshallResponse(UnmarshallerContext context, IRequestContext requestContext)
at Amazon.Runtime.Internal.Unmarshaller.UnmarshallAsync(IExecutionContext executionContext)
at Amazon.Runtime.Internal.Unmarshaller.InvokeAsync[T](IExecutionContext executionContext)
at Amazon.Runtime.Internal.ErrorHandler.InvokeAsync[T](IExecutionContext executionContext)
AmazonCloudWatchLogsClient 33|2024-03-01T10:49:28.421Z|INFO|AmazonUnmarshallingException making request ListAnomaliesRequest to https://logs.*****.amazonaws.com/. Attempting retry 2 of 4.
AmazonCloudWatchLogsClient 34|2024-03-01T10:49:30.621Z|DEBUG|Received response (truncated to 1024 bytes): [{"anomalies":[{"active":false,"anomalyDetectorArn":"arn:aws:logs:*********************","anomalyId":"a*******************************3c","description":"Unexpected pattern detected with severity ERROR","firstSeen":1708541760000,"histogram":{"1708524000000":3,"1708542000000":230,"1708560000000":269,"1708578000000":381,"1708596000000":381,"1708614000000":715,"1708632000000":725,"1708650000000":640,"1708668000000":718,"1708686000000":646,"1708704000000":716,"1708722000000":719,"1708740000000":712,"1708758000000":712,"1708776000000":719,"1708794000000":725,"1708812000000":710,"1708830000000":711,"1708848000000":716,"1708866000000":709,"1708884000000":717,"1708902000000":563,"1708920000000":235,"1708938000000":245,"1708956000000":240,"1708974000000":240,"1708992000000":241,"1709010000000":240,"1709028000000":240,"1709046000000":239,"1709064000000":233,"1709082000000":238,"1709100000000":239,"1709118000000":269,"1709136000000":479,"1709154000000":478,"17091720]
AmazonCloudWatchLogsClient 35|2024-03-01T10:49:30.669Z|ERROR|An exception of type AmazonUnmarshallingException was handled in ErrorHandler. --> Amazon.Runtime.AmazonUnmarshallingException: Error unmarshalling response back from AWS. Request ID: *******-****-43f5-*****-*****, Last Parsed Path: /anomalies//logSamples//, HTTP Status Code: 200 OK
---> Amazon.Runtime.AmazonClientException: We expected a VALUE token but got: ObjectStart
at Amazon.Runtime.Internal.Transform.JsonUnmarshallerContext.ReadText()
at Amazon.Runtime.Internal.Transform.SimpleTypeUnmarshaller`1.Unmarshall(JsonUnmarshallerContext context)
at Amazon.Runtime.Internal.Transform.StringUnmarshaller.Unmarshall(JsonUnmarshallerContext context)
at Amazon.Runtime.Internal.Transform.ListUnmarshaller`2.Unmarshall(JsonUnmarshallerContext context)
at Amazon.CloudWatchLogs.Model.Internal.MarshallTransformations.AnomalyUnmarshaller.Unmarshall(JsonUnmarshallerContext context)
at Amazon.Runtime.Internal.Transform.ListUnmarshaller`2.Unmarshall(JsonUnmarshallerContext context)
at Amazon.CloudWatchLogs.Model.Internal.MarshallTransformations.ListAnomaliesResponseUnmarshaller.Unmarshall(JsonUnmarshallerContext context)
at Amazon.Runtime.Internal.Transform.JsonResponseUnmarshaller.Unmarshall(UnmarshallerContext input)
--- End of inner exception stack trace ---
at Amazon.Runtime.Internal.Transform.JsonResponseUnmarshaller.Unmarshall(UnmarshallerContext input)
at Amazon.Runtime.Internal.Transform.ResponseUnmarshaller.UnmarshallResponse(UnmarshallerContext context)
at Amazon.Runtime.Internal.Unmarshaller.UnmarshallResponse(UnmarshallerContext context, IRequestContext requestContext)
at Amazon.Runtime.Internal.Unmarshaller.UnmarshallAsync(IExecutionContext executionContext)
at Amazon.Runtime.Internal.Unmarshaller.InvokeAsync[T](IExecutionContext executionContext)
at Amazon.Runtime.Internal.ErrorHandler.InvokeAsync[T](IExecutionContext executionContext)
AmazonCloudWatchLogsClient 36|2024-03-01T10:49:30.850Z|INFO|AmazonUnmarshallingException making request ListAnomaliesRequest to https://logs.*****.amazonaws.com/. Attempting retry 3 of 4.
AmazonCloudWatchLogsClient 37|2024-03-01T10:49:38.460Z|DEBUG|Received response (truncated to 1024 bytes): [{"anomalies":[{"active":false,"anomalyDetectorArn":"arn:aws:logs:*********************","anomalyId":"a*******************************3c","description":"Unexpected pattern detected with severity ERROR","firstSeen":1708541760000,"histogram":{"1708524000000":3,"1708542000000":230,"1708560000000":269,"1708578000000":381,"1708596000000":381,"1708614000000":715,"1708632000000":725,"1708650000000":640,"1708668000000":718,"1708686000000":646,"1708704000000":716,"1708722000000":719,"1708740000000":712,"1708758000000":712,"1708776000000":719,"1708794000000":725,"1708812000000":710,"1708830000000":711,"1708848000000":716,"1708866000000":709,"1708884000000":717,"1708902000000":563,"1708920000000":235,"1708938000000":245,"1708956000000":240,"1708974000000":240,"1708992000000":241,"1709010000000":240,"1709028000000":240,"1709046000000":239,"1709064000000":233,"1709082000000":238,"1709100000000":239,"1709118000000":269,"1709136000000":479,"1709154000000":478,"17091720]
AmazonCloudWatchLogsClient 38|2024-03-01T10:49:38.581Z|ERROR|An exception of type AmazonUnmarshallingException was handled in ErrorHandler. --> Amazon.Runtime.AmazonUnmarshallingException: Error unmarshalling response back from AWS. Request ID: *****-95f1-43ab-*****-********, Last Parsed Path: /anomalies//logSamples//, HTTP Status Code: 200 OK
---> Amazon.Runtime.AmazonClientException: We expected a VALUE token but got: ObjectStart
at Amazon.Runtime.Internal.Transform.JsonUnmarshallerContext.ReadText()
at Amazon.Runtime.Internal.Transform.SimpleTypeUnmarshaller`1.Unmarshall(JsonUnmarshallerContext context)
at Amazon.Runtime.Internal.Transform.ListUnmarshaller`2.Unmarshall(JsonUnmarshallerContext context)
at Amazon.CloudWatchLogs.Model.Internal.MarshallTransformations.AnomalyUnmarshaller.Unmarshall(JsonUnmarshallerContext context)
at Amazon.Runtime.Internal.Transform.ListUnmarshaller`2.Unmarshall(JsonUnmarshallerContext context)
at Amazon.CloudWatchLogs.Model.Internal.MarshallTransformations.ListAnomaliesResponseUnmarshaller.Unmarshall(JsonUnmarshallerContext context)
at Amazon.Runtime.Internal.Transform.JsonResponseUnmarshaller.Unmarshall(UnmarshallerContext input)
--- End of inner exception stack trace ---
at Amazon.Runtime.Internal.Transform.JsonResponseUnmarshaller.Unmarshall(UnmarshallerContext input)
at Amazon.Runtime.Internal.Transform.ResponseUnmarshaller.UnmarshallResponse(UnmarshallerContext context)
at Amazon.Runtime.Internal.Unmarshaller.UnmarshallResponse(UnmarshallerContext context, IRequestContext requestContext)
at Amazon.Runtime.Internal.Unmarshaller.UnmarshallAsync(IExecutionContext executionContext)
at Amazon.Runtime.Internal.Unmarshaller.InvokeAsync[T](IExecutionContext executionContext)
at Amazon.Runtime.Internal.ErrorHandler.InvokeAsync[T](IExecutionContext executionContext)
AmazonCloudWatchLogsClient 39|2024-03-01T10:49:39.041Z|INFO|AmazonUnmarshallingException making request ListAnomaliesRequest to https://logs.*****.amazonaws.com/. Attempting retry 4 of 4.
AmazonCloudWatchLogsClient 40|2024-03-01T10:50:05.973Z|DEBUG|Received response (truncated to 1024 bytes): [{"anomalies":[{"active":false,"anomalyDetectorArn":"arn:aws:logs:*********************","anomalyId":"a*******************************3c","description":"Unexpected pattern detected with severity ERROR","firstSeen":1708541760000,"histogram":{"1708524000000":3,"1708542000000":230,"1708560000000":269,"1708578000000":381,"1708596000000":381,"1708614000000":715,"1708632000000":725,"1708650000000":640,"1708668000000":718,"1708686000000":646,"1708704000000":716,"1708722000000":719,"1708740000000":712,"1708758000000":712,"1708776000000":719,"1708794000000":725,"1708812000000":710,"1708830000000":711,"1708848000000":716,"1708866000000":709,"1708884000000":717,"1708902000000":563,"1708920000000":235,"1708938000000":245,"1708956000000":240,"1708974000000":240,"1708992000000":241,"1709010000000":240,"1709028000000":240,"1709046000000":239,"1709064000000":233,"1709082000000":238,"1709100000000":239,"1709118000000":269,"1709136000000":479,"1709154000000":478,"17091720]
AmazonCloudWatchLogsClient 41|2024-03-01T10:50:06.067Z|ERROR|An exception of type AmazonUnmarshallingException was handled in ErrorHandler. --> Amazon.Runtime.AmazonUnmarshallingException: Error unmarshalling response back from AWS. Request ID: 5*****-*****-*****-****-********, Last Parsed Path: /anomalies//logSamples//, HTTP Status Code: 200 OK
---> Amazon.Runtime.AmazonClientException: We expected a VALUE token but got: ObjectStart
at Amazon.Runtime.Internal.Transform.JsonUnmarshallerContext.ReadText()
at Amazon.Runtime.Internal.Transform.SimpleTypeUnmarshaller`1.Unmarshall(JsonUnmarshallerContext context)
at Amazon.Runtime.Internal.Transform.ListUnmarshaller`2.Unmarshall(JsonUnmarshallerContext context)
at Amazon.CloudWatchLogs.Model.Internal.MarshallTransformations.AnomalyUnmarshaller.Unmarshall(JsonUnmarshallerContext context)
at Amazon.Runtime.Internal.Transform.ListUnmarshaller`2.Unmarshall(JsonUnmarshallerContext context)
at Amazon.CloudWatchLogs.Model.Internal.MarshallTransformations.ListAnomaliesResponseUnmarshaller.Unmarshall(JsonUnmarshallerContext context)
at Amazon.Runtime.Internal.Transform.JsonResponseUnmarshaller.Unmarshall(UnmarshallerContext input)
--- End of inner exception stack trace ---
at Amazon.Runtime.Internal.Transform.JsonResponseUnmarshaller.Unmarshall(UnmarshallerContext input)
at Amazon.Runtime.Internal.Transform.ResponseUnmarshaller.UnmarshallResponse(UnmarshallerContext context)
at Amazon.Runtime.Internal.Unmarshaller.UnmarshallResponse(UnmarshallerContext context, IRequestContext requestContext)
at Amazon.Runtime.Internal.Unmarshaller.UnmarshallAsync(IExecutionContext executionContext)
at Amazon.Runtime.Internal.Unmarshaller.InvokeAsync[T](IExecutionContext executionContext)
at Amazon.Runtime.Internal.ErrorHandler.InvokeAsync[T](IExecutionContext executionContext)
AmazonCloudWatchLogsClient 42|2024-03-01T10:50:06.520Z|ERROR|AmazonUnmarshallingException making request ListAnomaliesRequest to https://logs.*****.amazonaws.com/. Attempt 5. --> Amazon.Runtime.AmazonUnmarshallingException: Error unmarshalling response back from AWS. Request ID: *****-1758-47f4-8bfd-**************, Last Parsed Path: /anomalies//logSamples//, HTTP Status Code: 200 OK
---> Amazon.Runtime.AmazonClientException: We expected a VALUE token but got: ObjectStart
at Amazon.Runtime.Internal.Transform.JsonUnmarshallerContext.ReadText()
at Amazon.Runtime.Internal.Transform.SimpleTypeUnmarshaller`1.Unmarshall(JsonUnmarshallerContext context)
at Amazon.Runtime.Internal.Transform.ListUnmarshaller`2.Unmarshall(JsonUnmarshallerContext context)
at Amazon.CloudWatchLogs.Model.Internal.MarshallTransformations.AnomalyUnmarshaller.Unmarshall(JsonUnmarshallerContext context)
at Amazon.Runtime.Internal.Transform.ListUnmarshaller`2.Unmarshall(JsonUnmarshallerContext context)
at Amazon.CloudWatchLogs.Model.Internal.MarshallTransformations.ListAnomaliesResponseUnmarshaller.Unmarshall(JsonUnmarshallerContext context)
at Amazon.Runtime.Internal.Transform.JsonResponseUnmarshaller.Unmarshall(UnmarshallerContext input)
--- End of inner exception stack trace ---
at Amazon.Runtime.Internal.Transform.JsonResponseUnmarshaller.Unmarshall(UnmarshallerContext input)
at Amazon.Runtime.Internal.Transform.ResponseUnmarshaller.UnmarshallResponse(UnmarshallerContext context)
at Amazon.Runtime.Internal.Unmarshaller.UnmarshallResponse(UnmarshallerContext context, IRequestContext requestContext)
at Amazon.Runtime.Internal.Unmarshaller.UnmarshallAsync(IExecutionContext executionContext)
at Amazon.Runtime.Internal.Unmarshaller.InvokeAsync[T](IExecutionContext executionContext)
at Amazon.Runtime.Internal.ErrorHandler.InvokeAsync[T](IExecutionContext executionContext)
at Amazon.Runtime.Internal.ErrorHandler.InvokeAsync[T](IExecutionContext executionContext)
at Amazon.Runtime.Internal.CallbackHandler.InvokeAsync[T](IExecutionContext executionContext)
at Amazon.Runtime.Internal.Signer.InvokeAsync[T](IExecutionContext executionContext)
at Amazon.Runtime.Internal.EndpointDiscoveryHandler.InvokeAsync[T](IExecutionContext executionContext)
at Amazon.Runtime.Internal.EndpointDiscoveryHandler.InvokeAsync[T](IExecutionContext executionContext)
at Amazon.Runtime.Internal.CredentialsRetriever.InvokeAsync[T](IExecutionContext executionContext)
at Amazon.Runtime.Internal.RetryHandler.InvokeAsync[T](IExecutionContext executionContext)
from aws-sdk-net.
@danispir Thanks for the log. Unfortunately it cut off the response payload at 1K and I think we are missing the part that the unmarshaller is having a problem. Can you add the following line increase the size of the response payload logging?
AWSConfigs.LoggingConfig.LogResponsesSizeLimit = 10485760;
from aws-sdk-net.
I increased it to 20_000_000.
EnvironmentVariableInternalConfiguration 1|2024-03-02T06:29:12.601Z|INFO|The environment variable AWS_ENABLE_ENDPOINT_DISCOVERY was not set with a value.
EnvironmentVariableInternalConfiguration 2|2024-03-02T06:29:12.701Z|INFO|The environment variable AWS_MAX_ATTEMPTS was not set with a value.
EnvironmentVariableInternalConfiguration 3|2024-03-02T06:29:12.702Z|INFO|The environment variable AWS_RETRY_MODE was not set with a value.
EnvironmentVariableInternalConfiguration 4|2024-03-02T06:29:12.716Z|INFO|The environment variable AWS_EC2_METADATA_SERVICE_ENDPOINT was not set with a value.
EnvironmentVariableInternalConfiguration 5|2024-03-02T06:29:12.717Z|INFO|The environment variable AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE was not set with a value.
EnvironmentVariableInternalConfiguration 6|2024-03-02T06:29:12.717Z|INFO|The environment variable AWS_EC2_METADATA_V1_DISABLED was not set with a value.
EnvironmentVariableInternalConfiguration 7|2024-03-02T06:29:12.717Z|INFO|The environment variable AWS_USE_DUALSTACK_ENDPOINT was not set with a value.
EnvironmentVariableInternalConfiguration 8|2024-03-02T06:29:12.718Z|INFO|The environment variable AWS_USE_FIPS_ENDPOINT was not set with a value.
EnvironmentVariableInternalConfiguration 9|2024-03-02T06:29:12.718Z|INFO|The environment variable AWS_IGNORE_CONFIGURED_ENDPOINT_URLS was not set with a value.
EnvironmentVariableInternalConfiguration 10|2024-03-02T06:29:12.719Z|INFO|The environment variable AWS_DISABLE_REQUEST_COMPRESSION was not set with a value.
EnvironmentVariableInternalConfiguration 11|2024-03-02T06:29:12.719Z|INFO|The environment variable AWS_REQUEST_MIN_COMPRESSION_SIZE_BYTES was not set with a value.
EnvironmentVariableInternalConfiguration 12|2024-03-02T06:29:12.720Z|INFO|The environment variable AWS_SDK_UA_APP_ID was not set with a value.
ProfileInternalConfiguration 13|2024-03-02T06:29:12.835Z|INFO|There is no defaults_mode set in the profile named 'default' in store Amazon.Runtime.CredentialManagement.CredentialProfileStoreChain
ProfileInternalConfiguration 14|2024-03-02T06:29:12.836Z|INFO|There is no endpoint_discovery_enabled set in the profile named 'default' in store Amazon.Runtime.CredentialManagement.CredentialProfileStoreChain
ProfileInternalConfiguration 15|2024-03-02T06:29:12.836Z|INFO|There is no retry_mode set in the profile named 'default' in store Amazon.Runtime.CredentialManagement.CredentialProfileStoreChain
ProfileInternalConfiguration 16|2024-03-02T06:29:12.836Z|INFO|There is no max_attempts set in the profile named 'default' in store Amazon.Runtime.CredentialManagement.CredentialProfileStoreChain
ProfileInternalConfiguration 17|2024-03-02T06:29:12.839Z|INFO|There is no ec2_metadata_service_endpoint set in the profile named 'default' in store Amazon.Runtime.CredentialManagement.CredentialProfileStoreChain
ProfileInternalConfiguration 18|2024-03-02T06:29:12.840Z|INFO|There is no ec2_metadata_service_endpoint_mode set in the profile named 'default' in store Amazon.Runtime.CredentialManagement.CredentialProfileStoreChain
ProfileInternalConfiguration 19|2024-03-02T06:29:12.843Z|INFO|There is no ec2_metadata_v1_disabled set in the profile named 'default' in store Amazon.Runtime.CredentialManagement.CredentialProfileStoreChain
ProfileInternalConfiguration 20|2024-03-02T06:29:12.844Z|INFO|There is no use_dualstack_endpoint set in the profile named 'default' in store Amazon.Runtime.CredentialManagement.CredentialProfileStoreChain
ProfileInternalConfiguration 21|2024-03-02T06:29:12.845Z|INFO|There is no use_fips_endpoint set in the profile named 'default' in store Amazon.Runtime.CredentialManagement.CredentialProfileStoreChain
ProfileInternalConfiguration 22|2024-03-02T06:29:12.847Z|INFO|ignore_configured_endpoint_urls found in profile 'default' in store Amazon.Runtime.CredentialManagement.CredentialProfileStoreChain
ProfileInternalConfiguration 23|2024-03-02T06:29:12.847Z|INFO|There is no endpoint_url set in the profile named 'default' in store Amazon.Runtime.CredentialManagement.CredentialProfileStoreChain
ProfileInternalConfiguration 24|2024-03-02T06:29:12.849Z|INFO|There is no disable_request_compression set in the profile named 'default' in store Amazon.Runtime.CredentialManagement.CredentialProfileStoreChain
ProfileInternalConfiguration 25|2024-03-02T06:29:12.852Z|INFO|There is no request_min_compression_size_bytes set in the profile named 'default' in store Amazon.Runtime.CredentialManagement.CredentialProfileStoreChain
ProfileInternalConfiguration 26|2024-03-02T06:29:12.853Z|INFO|There is no sdk_ua_app_id set in the profile named 'default' in store Amazon.Runtime.CredentialManagement.CredentialProfileStoreChain
DefaultConfigurationProvider 27|2024-03-02T06:29:12.861Z|INFO|Resolved DefaultConfigurationMode for RegionEndpoint [**-****-*] to [Legacy].
AmazonCloudWatchLogsClient 28|2024-03-02T06:29:14.928Z|DEBUG|Received response (truncated to 20000000 bytes): [{"anomalies":[{"active":false,"anomalyDetectorArn":"arn:aws:logs:*********************","anomalyId":"a55219e6-92f0-4e21-b94c-a4267311613c","description":"Unexpected pattern detected with severity ERROR","firstSeen":1708541760000,"histogram":{"1708524000000":3,"1708542000000":230,"1708560000000":269,"1708578000000":381,"1708596000000":381,"1708614000000":715,"1708632000000":725,"1708650000000":640,"1708668000000":718,"1708686000000":646,"1708704000000":716,"1708722000000":719,"1708740000000":712,"1708758000000":712,"1708776000000":719,"1708794000000":725,"1708812000000":710,"1708830000000":711,"1708848000000":716,"1708866000000":709,"1708884000000":717,"1708902000000":563,"1708920000000":235,"1708938000000":245,"1708956000000":240,"1708974000000":240,"1708992000000":241,"1709010000000":240,"1709028000000":240,"1709046000000":239,"1709064000000":233,"1709082000000":238,"1709100000000":239,"1709118000000":269,"1709136000000":479,"1709154000000":478,"1709172000000":475,"1709190000000":472,"1709208000000":475,"1709226000000":477,"1709244000000":478,"1709262000000":475,"1709280000000":483,"1709298000000":707,"1709316000000":716,"1709334000000":713,"1709352000000":61},"isPatternLevelSuppression":false,"lastSeen":1709353500000,"logGroupArnList":["arn:aws:logs:**-****-*:818373788390:log-group:Prod-Alert-******"],"logSamples":[{"message":"{\"Timestamp\":\"2024-02-21T19:04:47.4963866+00:00\",\"Level\":\"Error\",\"MessageTemplate\":\"System.Net.Http.HttpRequestException: An error occurred while sending the request.\\n ---> System.IO.IOException: Unable to read data from the transport connection: Connection reset by peer.\\n ---> System.Net.Sockets.SocketException (104): Connection reset by peer\\n --- End of inner exception stack trace ---\\n at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource<System.Int32>.GetResult(Int16 token)\\n at System.Net.Http.HttpConnection.InitialFillAsync(Boolean async)\\n at S]
AmazonCloudWatchLogsClient 29|2024-03-02T06:29:15.071Z|ERROR|An exception of type AmazonUnmarshallingException was handled in ErrorHandler. --> Amazon.Runtime.AmazonUnmarshallingException: Error unmarshalling response back from AWS. Request ID: d8aaa943-774e-4d9b-b1f6-7b0f3a3a8c15, Last Parsed Path: /anomalies//logSamples//, HTTP Status Code: 200 OK
---> Amazon.Runtime.AmazonClientException: We expected a VALUE token but got: ObjectStart
at Amazon.Runtime.Internal.Transform.JsonUnmarshallerContext.ReadText()
at Amazon.Runtime.Internal.Transform.SimpleTypeUnmarshaller`1.Unmarshall(JsonUnmarshallerContext context)
at Amazon.Runtime.Internal.Transform.StringUnmarshaller.Unmarshall(JsonUnmarshallerContext context)
at Amazon.Runtime.Internal.Transform.ListUnmarshaller`2.Unmarshall(JsonUnmarshallerContext context)
at Amazon.CloudWatchLogs.Model.Internal.MarshallTransformations.AnomalyUnmarshaller.Unmarshall(JsonUnmarshallerContext context)
at Amazon.Runtime.Internal.Transform.ListUnmarshaller`2.Unmarshall(JsonUnmarshallerContext context)
at Amazon.CloudWatchLogs.Model.Internal.MarshallTransformations.ListAnomaliesResponseUnmarshaller.Unmarshall(JsonUnmarshallerContext context)
at Amazon.Runtime.Internal.Transform.JsonResponseUnmarshaller.Unmarshall(UnmarshallerContext input)
--- End of inner exception stack trace ---
at Amazon.Runtime.Internal.Transform.JsonResponseUnmarshaller.Unmarshall(UnmarshallerContext input)
at Amazon.Runtime.Internal.Transform.ResponseUnmarshaller.UnmarshallResponse(UnmarshallerContext context)
at Amazon.Runtime.Internal.Unmarshaller.UnmarshallResponse(UnmarshallerContext context, IRequestContext requestContext)
at Amazon.Runtime.Internal.Unmarshaller.UnmarshallAsync(IExecutionContext executionContext)
at Amazon.Runtime.Internal.Unmarshaller.InvokeAsync[T](IExecutionContext executionContext)
at Amazon.Runtime.Internal.ErrorHandler.InvokeAsync[T](IExecutionContext executionContext)
AmazonCloudWatchLogsClient 30|2024-03-02T06:29:15.641Z|INFO|AmazonUnmarshallingException making request ListAnomaliesRequest to https://logs.*****.amazonaws.com/. Attempting retry 1 of 4.
AmazonCloudWatchLogsClient 31|2024-03-02T06:29:16.490Z|DEBUG|Received response (truncated to 20000000 bytes): [{"anomalies":[{"active":false,"anomalyDetectorArn":"arn:aws:logs:*********************","anomalyId":"a55219e6-92f0-4e21-b94c-a4267311613c","description":"Unexpected pattern detected with severity ERROR","firstSeen":1708541760000,"histogram":{"1708524000000":3,"1708542000000":230,"1708560000000":269,"1708578000000":381,"1708596000000":381,"1708614000000":715,"1708632000000":725,"1708650000000":640,"1708668000000":718,"1708686000000":646,"1708704000000":716,"1708722000000":719,"1708740000000":712,"1708758000000":712,"1708776000000":719,"1708794000000":725,"1708812000000":710,"1708830000000":711,"1708848000000":716,"1708866000000":709,"1708884000000":717,"1708902000000":563,"1708920000000":235,"1708938000000":245,"1708956000000":240,"1708974000000":240,"1708992000000":241,"1709010000000":240,"1709028000000":240,"1709046000000":239,"1709064000000":233,"1709082000000":238,"1709100000000":239,"1709118000000":269,"1709136000000":479,"1709154000000":478,"1709172000000":475,"1709190000000":472,"1709208000000":475,"1709226000000":477,"1709244000000":478,"1709262000000":475,"1709280000000":483,"1709298000000":707,"1709316000000":716,"1709334000000":713,"1709352000000":61},"isPatternLevelSuppression":false,"lastSeen":1709353500000,"logGroupArnList":["arn:aws:logs:******-*******-group:**************"],"logSamples":[{"message":"{\"Timestamp\":\"2024-02-21T19:04:47.4963866+00:00\",\"Level\":\"Error\",\"MessageTemplate\":\"System.Net.Http.HttpRequestException: An error occurred while sending the request.\\n ---> System.IO.IOException: Unable to read data from the transport connection: Connection reset by peer.\\n ---> System.Net.Sockets.SocketException (104): Connection reset by peer\\n --- End of inner exception stack trace ---\\n at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource<System.Int32>.GetResult(Int16 token)\\n at System.Net.Http.HttpConnection.InitialFillAsync(Boolean async)\\n at S]
AmazonCloudWatchLogsClient 32|2024-03-02T06:29:16.602Z|ERROR|An exception of type AmazonUnmarshallingException was handled in ErrorHandler. --> Amazon.Runtime.AmazonUnmarshallingException: Error unmarshalling response back from AWS. Request ID: *******-b0c3-4e74-b9cd-1c2d936b552a, Last Parsed Path: /anomalies//logSamples//, HTTP Status Code: 200 OK
---> Amazon.Runtime.AmazonClientException: We expected a VALUE token but got: ObjectStart
at Amazon.Runtime.Internal.Transform.JsonUnmarshallerContext.ReadText()
at Amazon.Runtime.Internal.Transform.SimpleTypeUnmarshaller`1.Unmarshall(JsonUnmarshallerContext context)
at Amazon.Runtime.Internal.Transform.StringUnmarshaller.Unmarshall(JsonUnmarshallerContext context)
at Amazon.Runtime.Internal.Transform.ListUnmarshaller`2.Unmarshall(JsonUnmarshallerContext context)
at Amazon.CloudWatchLogs.Model.Internal.MarshallTransformations.AnomalyUnmarshaller.Unmarshall(JsonUnmarshallerContext context)
at Amazon.Runtime.Internal.Transform.ListUnmarshaller`2.Unmarshall(JsonUnmarshallerContext context)
at Amazon.CloudWatchLogs.Model.Internal.MarshallTransformations.ListAnomaliesResponseUnmarshaller.Unmarshall(JsonUnmarshallerContext context)
at Amazon.Runtime.Internal.Transform.JsonResponseUnmarshaller.Unmarshall(UnmarshallerContext input)
--- End of inner exception stack trace ---
at Amazon.Runtime.Internal.Transform.JsonResponseUnmarshaller.Unmarshall(UnmarshallerContext input)
at Amazon.Runtime.Internal.Transform.ResponseUnmarshaller.UnmarshallResponse(UnmarshallerContext context)
at Amazon.Runtime.Internal.Unmarshaller.UnmarshallResponse(UnmarshallerContext context, IRequestContext requestContext)
at Amazon.Runtime.Internal.Unmarshaller.UnmarshallAsync(IExecutionContext executionContext)
at Amazon.Runtime.Internal.Unmarshaller.InvokeAsync[T](IExecutionContext executionContext)
at Amazon.Runtime.Internal.ErrorHandler.InvokeAsync[T](IExecutionContext executionContext)
AmazonCloudWatchLogsClient 33|2024-03-02T06:29:17.085Z|INFO|AmazonUnmarshallingException making request ListAnomaliesRequest to https://logs.*****.amazonaws.com/. Attempting retry 2 of 4.
AmazonCloudWatchLogsClient 34|2024-03-02T06:29:19.346Z|DEBUG|Received response (truncated to 20000000 bytes): [{"anomalies":[{"active":false,"anomalyDetectorArn":"arn:aws:logs:*********************","anomalyId":"a55219e6-92f0-4e21-b94c-a4267311613c","description":"Unexpected pattern detected with severity ERROR","firstSeen":1708541760000,"histogram":{"1708524000000":3,"1708542000000":230,"1708560000000":269,"1708578000000":381,"1708596000000":381,"1708614000000":715,"1708632000000":725,"1708650000000":640,"1708668000000":718,"1708686000000":646,"1708704000000":716,"1708722000000":719,"1708740000000":712,"1708758000000":712,"1708776000000":719,"1708794000000":725,"1708812000000":710,"1708830000000":711,"1708848000000":716,"1708866000000":709,"1708884000000":717,"1708902000000":563,"1708920000000":235,"1708938000000":245,"1708956000000":240,"1708974000000":240,"1708992000000":241,"1709010000000":240,"1709028000000":240,"1709046000000":239,"1709064000000":233,"1709082000000":238,"1709100000000":239,"1709118000000":269,"1709136000000":479,"1709154000000":478,"1709172000000":475,"1709190000000":472,"1709208000000":475,"1709226000000":477,"1709244000000":478,"1709262000000":475,"1709280000000":483,"1709298000000":707,"1709316000000":716,"1709334000000":713,"1709352000000":61},"isPatternLevelSuppression":false,"lastSeen":1709353500000,"logGroupArnList":["arn:aws:logs:**-****-*:818373788390:log-group:Prod-Alert-******"],"logSamples":[{"message":"{\"Timestamp\":\"2024-02-21T19:04:47.4963866+00:00\",\"Level\":\"Error\",\"MessageTemplate\":\"System.Net.Http.HttpRequestException: An error occurred while sending the request.\\n ---> System.IO.IOException: Unable to read data from the transport connection: Connection reset by peer.\\n ---> System.Net.Sockets.SocketException (104): Connection reset by peer\\n --- End of inner exception stack trace ---\\n at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource<System.Int32>.GetResult(Int16 token)\\n at System.Net.Http.HttpConnection.InitialFillAsync(Boolean async)\\n at S]
AmazonCloudWatchLogsClient 35|2024-03-02T06:29:19.468Z|ERROR|An exception of type AmazonUnmarshallingException was handled in ErrorHandler. --> Amazon.Runtime.AmazonUnmarshallingException: Error unmarshalling response back from AWS. Request ID: 13978e97-d8a5-4aaf-8ddd-71995fc87ad4, Last Parsed Path: /anomalies//logSamples//, HTTP Status Code: 200 OK
---> Amazon.Runtime.AmazonClientException: We expected a VALUE token but got: ObjectStart
at Amazon.Runtime.Internal.Transform.JsonUnmarshallerContext.ReadText()
at Amazon.Runtime.Internal.Transform.SimpleTypeUnmarshaller`1.Unmarshall(JsonUnmarshallerContext context)
at Amazon.Runtime.Internal.Transform.StringUnmarshaller.Unmarshall(JsonUnmarshallerContext context)
at Amazon.Runtime.Internal.Transform.ListUnmarshaller`2.Unmarshall(JsonUnmarshallerContext context)
at Amazon.CloudWatchLogs.Model.Internal.MarshallTransformations.AnomalyUnmarshaller.Unmarshall(JsonUnmarshallerContext context)
at Amazon.Runtime.Internal.Transform.ListUnmarshaller`2.Unmarshall(JsonUnmarshallerContext context)
at Amazon.CloudWatchLogs.Model.Internal.MarshallTransformations.ListAnomaliesResponseUnmarshaller.Unmarshall(JsonUnmarshallerContext context)
at Amazon.Runtime.Internal.Transform.JsonResponseUnmarshaller.Unmarshall(UnmarshallerContext input)
--- End of inner exception stack trace ---
at Amazon.Runtime.Internal.Transform.JsonResponseUnmarshaller.Unmarshall(UnmarshallerContext input)
at Amazon.Runtime.Internal.Transform.ResponseUnmarshaller.UnmarshallResponse(UnmarshallerContext context)
at Amazon.Runtime.Internal.Unmarshaller.UnmarshallResponse(UnmarshallerContext context, IRequestContext requestContext)
at Amazon.Runtime.Internal.Unmarshaller.UnmarshallAsync(IExecutionContext executionContext)
at Amazon.Runtime.Internal.Unmarshaller.InvokeAsync[T](IExecutionContext executionContext)
at Amazon.Runtime.Internal.ErrorHandler.InvokeAsync[T](IExecutionContext executionContext)
AmazonCloudWatchLogsClient 36|2024-03-02T06:29:19.945Z|INFO|AmazonUnmarshallingException making request ListAnomaliesRequest to https://logs.*****.amazonaws.com/. Attempting retry 3 of 4.
AmazonCloudWatchLogsClient 37|2024-03-02T06:29:27.559Z|DEBUG|Received response (truncated to 20000000 bytes): [{"anomalies":[{"active":false,"anomalyDetectorArn":"arn:aws:logs:*********************","anomalyId":"a55219e6-92f0-4e21-b94c-a4267311613c","description":"Unexpected pattern detected with severity ERROR","firstSeen":1708541760000,"histogram":{"1708524000000":3,"1708542000000":230,"1708560000000":269,"1708578000000":381,"1708596000000":381,"1708614000000":715,"1708632000000":725,"1708650000000":640,"1708668000000":718,"1708686000000":646,"1708704000000":716,"1708722000000":719,"1708740000000":712,"1708758000000":712,"1708776000000":719,"1708794000000":725,"1708812000000":710,"1708830000000":711,"1708848000000":716,"1708866000000":709,"1708884000000":717,"1708902000000":563,"1708920000000":235,"1708938000000":245,"1708956000000":240,"1708974000000":240,"1708992000000":241,"1709010000000":240,"1709028000000":240,"1709046000000":239,"1709064000000":233,"1709082000000":238,"1709100000000":239,"1709118000000":269,"1709136000000":479,"1709154000000":478,"1709172000000":475,"1709190000000":472,"1709208000000":475,"1709226000000":477,"1709244000000":478,"1709262000000":475,"1709280000000":483,"1709298000000":707,"1709316000000":716,"1709334000000":713,"1709352000000":61},"isPatternLevelSuppression":false,"lastSeen":1709353500000,"logGroupArnList":["arn:aws:logs:**-****-*:818373788390:log-group:Prod-Alert-******"],"logSamples":[{"message":"{\"Timestamp\":\"2024-02-21T19:04:47.4963866+00:00\",\"Level\":\"Error\",\"MessageTemplate\":\"System.Net.Http.HttpRequestException: An error occurred while sending the request.\\n ---> System.IO.IOException: Unable to read data from the transport connection: Connection reset by peer.\\n ---> System.Net.Sockets.SocketException (104): Connection reset by peer\\n --- End of inner exception stack trace ---\\n at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource<System.Int32>.GetResult(Int16 token)\\n at System.Net.Http.HttpConnection.InitialFillAsync(Boolean async)\\n at S]
AmazonCloudWatchLogsClient 38|2024-03-02T06:29:27.683Z|ERROR|An exception of type AmazonUnmarshallingException was handled in ErrorHandler. --> Amazon.Runtime.AmazonUnmarshallingException: Error unmarshalling response back from AWS. Request ID: b0df53fa-6696-4429-a24c-1d241ab1e420, Last Parsed Path: /anomalies//logSamples//, HTTP Status Code: 200 OK
---> Amazon.Runtime.AmazonClientException: We expected a VALUE token but got: ObjectStart
at Amazon.Runtime.Internal.Transform.JsonUnmarshallerContext.ReadText()
at Amazon.Runtime.Internal.Transform.SimpleTypeUnmarshaller`1.Unmarshall(JsonUnmarshallerContext context)
at Amazon.Runtime.Internal.Transform.ListUnmarshaller`2.Unmarshall(JsonUnmarshallerContext context)
at Amazon.CloudWatchLogs.Model.Internal.MarshallTransformations.AnomalyUnmarshaller.Unmarshall(JsonUnmarshallerContext context)
at Amazon.Runtime.Internal.Transform.ListUnmarshaller`2.Unmarshall(JsonUnmarshallerContext context)
at Amazon.CloudWatchLogs.Model.Internal.MarshallTransformations.ListAnomaliesResponseUnmarshaller.Unmarshall(JsonUnmarshallerContext context)
at Amazon.Runtime.Internal.Transform.JsonResponseUnmarshaller.Unmarshall(UnmarshallerContext input)
--- End of inner exception stack trace ---
at Amazon.Runtime.Internal.Transform.JsonResponseUnmarshaller.Unmarshall(UnmarshallerContext input)
at Amazon.Runtime.Internal.Transform.ResponseUnmarshaller.UnmarshallResponse(UnmarshallerContext context)
at Amazon.Runtime.Internal.Unmarshaller.UnmarshallResponse(UnmarshallerContext context, IRequestContext requestContext)
at Amazon.Runtime.Internal.Unmarshaller.UnmarshallAsync(IExecutionContext executionContext)
at Amazon.Runtime.Internal.Unmarshaller.InvokeAsync[T](IExecutionContext executionContext)
at Amazon.Runtime.Internal.ErrorHandler.InvokeAsync[T](IExecutionContext executionContext)
AmazonCloudWatchLogsClient 39|2024-03-02T06:29:28.178Z|INFO|AmazonUnmarshallingException making request ListAnomaliesRequest to https://logs.*****.amazonaws.com/. Attempting retry 4 of 4.
AmazonCloudWatchLogsClient 40|2024-03-02T06:29:54.987Z|DEBUG|Received response (truncated to 20000000 bytes): [{"anomalies":[{"active":false,"anomalyDetectorArn":"arn:aws:logs:*********************","anomalyId":"a55219e6-92f0-4e21-b94c-a4267311613c","description":"Unexpected pattern detected with severity ERROR","firstSeen":1708541760000,"histogram":{"1708524000000":3,"1708542000000":230,"1708560000000":269,"1708578000000":381,"1708596000000":381,"1708614000000":715,"1708632000000":725,"1708650000000":640,"1708668000000":718,"1708686000000":646,"1708704000000":716,"1708722000000":719,"1708740000000":712,"1708758000000":712,"1708776000000":719,"1708794000000":725,"1708812000000":710,"1708830000000":711,"1708848000000":716,"1708866000000":709,"1708884000000":717,"1708902000000":563,"1708920000000":235,"1708938000000":245,"1708956000000":240,"1708974000000":240,"1708992000000":241,"1709010000000":240,"1709028000000":240,"1709046000000":239,"1709064000000":233,"1709082000000":238,"1709100000000":239,"1709118000000":269,"1709136000000":479,"1709154000000":478,"1709172000000":475,"1709190000000":472,"1709208000000":475,"1709226000000":477,"1709244000000":478,"1709262000000":475,"1709280000000":483,"1709298000000":707,"1709316000000":716,"1709334000000":713,"1709352000000":61},"isPatternLevelSuppression":false,"lastSeen":1709353500000,"logGroupArnList":["arn:aws:logs:**-****-*:818373788390:log-group:Prod-Alert-******"],"logSamples":[{"message":"{\"Timestamp\":\"2024-02-21T19:04:47.4963866+00:00\",\"Level\":\"Error\",\"MessageTemplate\":\"System.Net.Http.HttpRequestException: An error occurred while sending the request.\\n ---> System.IO.IOException: Unable to read data from the transport connection: Connection reset by peer.\\n ---> System.Net.Sockets.SocketException (104): Connection reset by peer\\n --- End of inner exception stack trace ---\\n at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource<System.Int32>.GetResult(Int16 token)\\n at System.Net.Http.HttpConnection.InitialFillAsync(Boolean async)\\n at S]
AmazonCloudWatchLogsClient 41|2024-03-02T06:29:55.117Z|ERROR|An exception of type AmazonUnmarshallingException was handled in ErrorHandler. --> Amazon.Runtime.AmazonUnmarshallingException: Error unmarshalling response back from AWS. Request ID: b194a96a-3446-47b1-84c4-8760f0070b19, Last Parsed Path: /anomalies//logSamples//, HTTP Status Code: 200 OK
---> Amazon.Runtime.AmazonClientException: We expected a VALUE token but got: ObjectStart
at Amazon.Runtime.Internal.Transform.JsonUnmarshallerContext.ReadText()
at Amazon.Runtime.Internal.Transform.SimpleTypeUnmarshaller`1.Unmarshall(JsonUnmarshallerContext context)
at Amazon.Runtime.Internal.Transform.ListUnmarshaller`2.Unmarshall(JsonUnmarshallerContext context)
at Amazon.CloudWatchLogs.Model.Internal.MarshallTransformations.AnomalyUnmarshaller.Unmarshall(JsonUnmarshallerContext context)
at Amazon.Runtime.Internal.Transform.ListUnmarshaller`2.Unmarshall(JsonUnmarshallerContext context)
at Amazon.CloudWatchLogs.Model.Internal.MarshallTransformations.ListAnomaliesResponseUnmarshaller.Unmarshall(JsonUnmarshallerContext context)
at Amazon.Runtime.Internal.Transform.JsonResponseUnmarshaller.Unmarshall(UnmarshallerContext input)
--- End of inner exception stack trace ---
at Amazon.Runtime.Internal.Transform.JsonResponseUnmarshaller.Unmarshall(UnmarshallerContext input)
at Amazon.Runtime.Internal.Transform.ResponseUnmarshaller.UnmarshallResponse(UnmarshallerContext context)
at Amazon.Runtime.Internal.Unmarshaller.UnmarshallResponse(UnmarshallerContext context, IRequestContext requestContext)
at Amazon.Runtime.Internal.Unmarshaller.UnmarshallAsync(IExecutionContext executionContext)
at Amazon.Runtime.Internal.Unmarshaller.InvokeAsync[T](IExecutionContext executionContext)
at Amazon.Runtime.Internal.ErrorHandler.InvokeAsync[T](IExecutionContext executionContext)
AmazonCloudWatchLogsClient 42|2024-03-02T06:29:55.594Z|ERROR|AmazonUnmarshallingException making request ListAnomaliesRequest to https://logs.*****.amazonaws.com/. Attempt 5. --> Amazon.Runtime.AmazonUnmarshallingException: Error unmarshalling response back from AWS. Request ID: b194a96a-3446-47b1-84c4-8760f0070b19, Last Parsed Path: /anomalies//logSamples//, HTTP Status Code: 200 OK
---> Amazon.Runtime.AmazonClientException: We expected a VALUE token but got: ObjectStart
at Amazon.Runtime.Internal.Transform.JsonUnmarshallerContext.ReadText()
at Amazon.Runtime.Internal.Transform.SimpleTypeUnmarshaller`1.Unmarshall(JsonUnmarshallerContext context)
at Amazon.Runtime.Internal.Transform.ListUnmarshaller`2.Unmarshall(JsonUnmarshallerContext context)
at Amazon.CloudWatchLogs.Model.Internal.MarshallTransformations.AnomalyUnmarshaller.Unmarshall(JsonUnmarshallerContext context)
at Amazon.Runtime.Internal.Transform.ListUnmarshaller`2.Unmarshall(JsonUnmarshallerContext context)
at Amazon.CloudWatchLogs.Model.Internal.MarshallTransformations.ListAnomaliesResponseUnmarshaller.Unmarshall(JsonUnmarshallerContext context)
at Amazon.Runtime.Internal.Transform.JsonResponseUnmarshaller.Unmarshall(UnmarshallerContext input)
--- End of inner exception stack trace ---
at Amazon.Runtime.Internal.Transform.JsonResponseUnmarshaller.Unmarshall(UnmarshallerContext input)
at Amazon.Runtime.Internal.Transform.ResponseUnmarshaller.UnmarshallResponse(UnmarshallerContext context)
at Amazon.Runtime.Internal.Unmarshaller.UnmarshallResponse(UnmarshallerContext context, IRequestContext requestContext)
at Amazon.Runtime.Internal.Unmarshaller.UnmarshallAsync(IExecutionContext executionContext)
at Amazon.Runtime.Internal.Unmarshaller.InvokeAsync[T](IExecutionContext executionContext)
at Amazon.Runtime.Internal.ErrorHandler.InvokeAsync[T](IExecutionContext executionContext)
at Amazon.Runtime.Internal.ErrorHandler.InvokeAsync[T](IExecutionContext executionContext)
at Amazon.Runtime.Internal.CallbackHandler.InvokeAsync[T](IExecutionContext executionContext)
at Amazon.Runtime.Internal.Signer.InvokeAsync[T](IExecutionContext executionContext)
at Amazon.Runtime.Internal.EndpointDiscoveryHandler.InvokeAsync[T](IExecutionContext executionContext)
at Amazon.Runtime.Internal.EndpointDiscoveryHandler.InvokeAsync[T](IExecutionContext executionContext)
at Amazon.Runtime.Internal.CredentialsRetriever.InvokeAsync[T](IExecutionContext executionContext)
at Amazon.Runtime.Internal.RetryHandler.InvokeAsync[T](IExecutionContext executionContext)
from aws-sdk-net.
P120800175
from aws-sdk-net.
@danispir Could you test with the new version of the CloudWatch package that was just released? https://www.nuget.org/packages/AWSSDK.CloudWatchLogs/3.7.305
It includes an update to the ListAnomalies
API that hopefully fixes your issue.
from aws-sdk-net.
Hi @dscpinheiro. I can confirm that with the latest version it is working. Thanks everyone for your support!
I would like to point another thing, but is not related in this case to AWS SDK, because it's behaving the same when running through aws cli command line. Maybe somebody can pass this information to CloudWatch logs team.
When executing list anomalies, there is LogSamples array which contains messages and templates. If the message is above a specific length, it is truncated. This is a bit frustrating for us developers. However, in the browser on AWS Console, when navigating the anomalies page in CloudWatch, log samples tab displays entire message. One work around is to take the timestamp and execute some requests over CloudWatch logs in order to fetch entire message. But of course, this implies other API calls on our side, which increases execution time when we have large amount of log data.
from aws-sdk-net.
Glad that resolved your issue, I'll pass the feedback to the CloudWatch team.
from aws-sdk-net.
Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.
from aws-sdk-net.
Related Issues (20)
- V4 Development: Sensible LangVersion HOT 4
- Record Support in DynamoDBContext HOT 3
- Null QueueUrl when using LocalStack HOT 3
- DisableFetchingTableMetadata leads to InvalidOperationException if PropertyConverter is used HOT 6
- AWSSDK.S3 ListObjectsV2 API returns Size incorrectly every other request for some subset of files +/- 2 bytes HOT 6
- V4 Development: DefineConstants requires an overhaul HOT 1
- AmazonS3Client.PutObjectAsync does not retry with HttpClient HttpCompletionOption.ResponseHeadersRead when using devproxy HOT 5
- Amazon.CloudWatch.Model.MetricDatum timestamp is not set correctly HOT 3
- connectCases:Add retry if created customer or case is not immediately available HOT 6
- Unable to use S3 Path Style Access S3 URL HOT 3
- Cannot Get DynamoDB record when model inherits from base class with member with the same name HOT 8
- Unable to connect to Timestream from using endpoint (.Net) HOT 8
- DynamoDB SDK convert Nullable DateTime to Local HOT 4
- When cancelled, dynamodb.eu-west-1.amazonaws.com throws an exception instead of returning HTTP code HOT 2
- There is no way to get bedrock streaming api responses using async io. HOT 8
- V4 Development Tracker HOT 4
- Upcoming Observability Features in AWS SDK for .NET HOT 4
- Disable Expect100Continue and how to sub-class S3 Requests HOT 1
- AmazonBedrockRuntimeClient and anthropic.claude-3-5-sonnet-20240620-v1:0 throw exception HOT 2
- [v4] `CryptoUtil` refactoring opportunities. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-sdk-net.