You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm attempting to use the AWS Cloudwatch .Net Core logger in a process that handles large amounts of data in a multi-threaded fashion. We're hosting this process in ECS, so Cloudwatch seemed natural. I've tried a few things, such as registering my LoggerFactory as a transient service:
But it seems that no matter what, the logger eventually dies silently and won't come back. The application continues to run, but no more messages appear in the log.
This is an example of the messages I see in aws-logger-errors.txt:
Log Entry :
2/12/2018 10:41:49 PM
:
:Amazon.Runtime.AmazonUnmarshallingException: Error unmarshalling response back from AWS. ---> System.NullReferenceException: Object reference not set to an instance of an object.
at Amazon.Runtime.Internal.Transform.JsonErrorResponseUnmarshaller.Unmarshall(JsonUnmarshallerContext context) in E:\JenkinsWorkspaces\v3-stage-release\AWSDotNetPublic\sdk\src\Core\Amazon.Runtime\Internal\Transform\JsonErrorResponseUnmarshaller.cs:line 103
at Amazon.CloudWatchLogs.Model.Internal.MarshallTransformations.PutLogEventsResponseUnmarshaller.UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
at Amazon.Runtime.Internal.Transform.JsonResponseUnmarshaller.UnmarshallException(UnmarshallerContext input, Exception innerException, HttpStatusCode statusCode) in E:\JenkinsWorkspaces\v3-stage-release\AWSDotNetPublic\sdk\src\Core\Amazon.Runtime\Internal\Transform\ResponseUnmarshallers.cs:line 198
at Amazon.Runtime.Internal.HttpErrorResponseExceptionHandler.HandleException(IExecutionContext executionContext, HttpErrorResponseException exception) in E:\JenkinsWorkspaces\v3-stage-release\AWSDotNetPublic\sdk\src\Core\Amazon.Runtime\Pipeline\ErrorHandler\HttpErrorResponseExceptionHandler.cs:line 78
--- End of inner exception stack trace ---
The text was updated successfully, but these errors were encountered:
Ihave deployed a fix for this in AWS.Logger.Core 1.6/1.7. You can get it by either updating your chosen logging dependency to latest (AWS.Logger.AspNetCore), or downloading version 1.7 of core directly.
I am still experiencing similar problems with AWS.Logger.AspNetCore 1.2.7 using AWS.Logger.Core 1.1.8. Within a day or two, the majority of my streams stop updating.
Unfortunately I could not find any related or useful entries in aws-logger-errors.txt to attach.
If I restart my services then new streams are created as expected.
I'm attempting to use the AWS Cloudwatch .Net Core logger in a process that handles large amounts of data in a multi-threaded fashion. We're hosting this process in ECS, so Cloudwatch seemed natural. I've tried a few things, such as registering my LoggerFactory as a transient service:
And also getting the logger as a function in hopes of creating it anew:
serviceCollection.AddSingleton<Func<ILogger>>((IServiceProvider provider) => { return () => provider.GetRequiredService<ILogger<App>>(); });
But it seems that no matter what, the logger eventually dies silently and won't come back. The application continues to run, but no more messages appear in the log.
This is an example of the messages I see in aws-logger-errors.txt:
The text was updated successfully, but these errors were encountered: