SaintAngeLs / distributed_minispace

Microservices based Social Network -- Distributed .Net Blazor solution. MiniSpace is a microservices-based social network designed to enhance student life. Built with .NET Blazor, it enables event management, social interactions, and administrative oversight, providing a comprehensive platform for students and event organizers.
https://minispace.itsharppro.com
Apache License 2.0
5 stars 0 forks source link

Email service exception #256

Closed SaintAngeLs closed 1 month ago

SaintAngeLs commented 1 month ago
 INF] End processing HTTP request after 98.5835ms - 200
[10:47:31 ERR] Requested value 'Unread' was not found.
System.ArgumentException: Requested value 'Unread' was not found.
   at System.Enum.TryParseByName[TStorage](RuntimeType enumType, ReadOnlySpan`1 value, Boolean ignoreCase, Boolean throwOnFailure, TStorage& result)
   at System.Enum.TryParseByValueOrName[TUnderlying,TStorage](RuntimeType enumType, ReadOnlySpan`1 value, Boolean ignoreCase, Boolean throwOnFailure, TUnderlying& result)
   at System.Enum.TryParse(Type enumType, ReadOnlySpan`1 value, Boolean ignoreCase, Boolean throwOnFailure, Object& result)
   at System.Enum.Parse(Type enumType, String value, Boolean ignoreCase)
   at MiniSpace.Services.Email.Application.Events.External.Handlers.NotificationCreatedHandler.LoadHtmlTemplate(String filePath, NotificationCreated eventDetails, StudentDto student) in /app/src/MiniSpace.Services.Email.Application/Events/External/Handlers/NotificationCreatedHandler.cs:line 87
   at MiniSpace.Services.Email.Application.Events.External.Handlers.NotificationCreatedHandler.HandleAsync(NotificationCreated event, CancellationToken cancellationToken) in /app/src/MiniSpace.Services.Email.Application/Events/External/Handlers/NotificationCreatedHandler.cs:line 55
   at Convey.Logging.CQRS.Decorators.EventHandlerLoggingDecorator`1.HandleAsync(TEvent event, CancellationToken cancellationToken)
   at Convey.MessageBrokers.CQRS.Extensions.<>c__3`1.<<SubscribeEvent>b__3_0>d.MoveNext()
--- End of stack trace from previous location ---
   at Convey.MessageBrokers.RabbitMQ.Internals.RabbitMqBackgroundService.<>c__DisplayClass27_0.<<TryHandleAsync>b__1>d.MoveNext()
[10:47:31 ERR] Unable to handle a message: 'notification_created' with ID: '3e4c041e0cc545dfac68ef2860a0d72e', Correlation ID: '1f4d051c1633435283f736ed6c447efd', retry 4/3...
[10:47:31 ERR] Handling a message: notification_created with ID: 3e4c041e0cc545dfac68ef2860a0d72e, Correlation ID: 1f4d051c1633435283f736ed6c447efd failed
[10:47:31 INF] Received a message with ID: '3d3775640e6747c5a87d4b8682b09b7a', Correlation ID: '1f4d051c1633435283f736ed6c447efd', timestamp: 1717325245, queue: email-service/notifications.notification_created, routing key: notification_created, exchange: notifications, payload: 
[10:47:31 INF] Handling a message: notification_created with ID: 3d3775640e6747c5a87d4b8682b09b7a, Correlation ID: 1f4d051c1633435283f736ed6c447efd, retry: 0
[10:47:31 INF] Received Event: {"NotificationId":"b979e2a4-8902-4fe6-89b6-a5325fa6775f","UserId":"c4819385-2bdf-41c3-a21c-5a9e0f195fda","Message":"A new comment has been posted by Piotr Padamczyk on your event \u0027Images please\u0027.","CreatedAt":"2024-06-02T10:47:25.6215156Z","EventType":"CommentCreated","RelatedEntityId":"393789ed-84e8-40dd-913e-c149df87e76d","Details":"\u003Cp\u003EPiotr Padamczyk commented on your event \u0027Images please\u0027: event\u003C/p\u003E"}
[10:47:31 INF] Start processing HTTP request GET http://students-service/students/c4819385-2bdf-41c3-a21c-5a9e0f195fda
[10:47:31 INF] Sending HTTP request GET http://fabio:9999/students-service/students/c4819385-2bdf-41c3-a21c-5a9e0f195fda
[10:47:32 INF] Received HTTP response headers after 99.7008ms - 200
[10:47:32 INF] End processing HTTP request after 100.6808ms - 200
[10:47:33 INF] Request starting HTTP/1.1 GET http://email-service:80/ping - null null
[10:47:33 INF] Request finished HTTP/1.1 GET http://email-service:80/ping - 200 null text/plain 0.2021ms
[10:47:33 INF] Email sent to piotr.padamczyk@gmail.com
[10:47:35 INF] Notification created with ID: b979e2a4-8902-4fe6-89b6-a5325fa6775f for user: c4819385-2bdf-41c3-a21c-5a9e0f195fda. Event type: CommentCreated created at 06/02/2024 10:47:25.
[10:47:35 INF] Handled a message: notification_created with ID: 3d3775640e6747c5a87d4b8682b09b7a, Correlation ID: 1f4d051c1633435283f736ed6c447efd, retry: 0
[10:47:36 INF] Request starting HTTP/1.1 GET http://email-service:80/ping - null null