SaintAngeLs / courier_app

Courier-hub application build up with .net and React
2 stars 0 forks source link

Date time issue #86

Closed SaintAngeLs closed 10 months ago

SaintAngeLs commented 10 months ago
Content root path: /home/kaliuser/Documents/portfolio/commercial_apps/courierapp/courier_app/SwiftParcel.Services.Parcels/src/SwiftParcel.Services.Parcels.Api/SwiftParcel.Services.Parcels.Api
Now listening on: http://localhost:5007
Application started. Press Ctrl+C to shut down.
[04:38:07 INF] Request starting HTTP/1.1 POST http://localhost:5007/parcels application/json 680
[04:38:07 INF] Executing endpoint 'parcels HTTP: POST'
[04:38:07 ERR] There was an error when processing a message with id: 'ea3ad40c636a4aa8bdaa808552c4e428'.
SwiftParcel.Services.Parcels.Core.Exceptions.InvalidParcelDateTimeException: Parcel DateTime property (pickup_date) is invalid: .
   at SwiftParcel.Services.Parcels.Application.Commands.Handlers.AddParcelHandler.HandleAsync(AddParcel command, CancellationToken cancellationToken) in /home/kaliuser/Documents/portfolio/commercial_apps/courierapp/courier_app/SwiftParcel.Services.Parcels/src/SwiftParcel.Services.Parcels.Application/SwiftParcel.Services.Parcels.Application/Commands/Handlers/AddParcelHandler.cs:line 51
   at Convey.MessageBrokers.Outbox.Mongo.Internals.MongoMessageOutbox.HandleAsync(String messageId, Func`1 handler)
[04:38:07 INF] Executed endpoint 'parcels HTTP: POST'
[04:38:07 ERR] Parcel DateTime property (pickup_date) is invalid: .
SwiftParcel.Services.Parcels.Core.Exceptions.InvalidParcelDateTimeException: Parcel DateTime property (pickup_date) is invalid: .
   at SwiftParcel.Services.Parcels.Application.Commands.Handlers.AddParcelHandler.HandleAsync(AddParcel command, CancellationToken cancellationToken) in /home/kaliuser/Documents/portfolio/commercial_apps/courierapp/courier_app/SwiftParcel.Services.Parcels/src/SwiftParcel.Services.Parcels.Application/SwiftParcel.Services.Parcels.Application/Commands/Handlers/AddParcelHandler.cs:line 51
   at Convey.MessageBrokers.Outbox.Mongo.Internals.MongoMessageOutbox.HandleAsync(String messageId, Func`1 handler)
   at Convey.MessageBrokers.Outbox.Mongo.Internals.MongoMessageOutbox.HandleAsync(String messageId, Func`1 handler)
   at Convey.Logging.CQRS.Decorators.CommandHandlerLoggingDecorator`1.HandleAsync(TCommand command, CancellationToken cancellationToken)
   at Convey.CQRS.Commands.Dispatchers.CommandDispatcher.SendAsync[T](T command, CancellationToken cancellationToken)
   at Convey.WebApi.CQRS.Builders.DispatcherEndpointsBuilder.BuildCommandContext[T](T command, HttpContext context, Func`3 beforeDispatch, Func`3 afterDispatch)
   at Convey.WebApi.EndpointsBuilder.BuildRequestContext[T](HttpContext httpContext, Func`3 context)
   at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
   at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
   at App.Metrics.AspNetCore.Tracking.Middleware.ApdexMiddleware.MeasureTransaction(HttpContext context)
   at App.Metrics.AspNetCore.Tracking.Middleware.PerRequestTimerMiddleware.TimeTransaction(HttpContext context)
   at App.Metrics.AspNetCore.Tracking.Middleware.RequestTimerMiddleware.TimeTransaction(HttpContext context)
   at App.Metrics.AspNetCore.Tracking.Middleware.ErrorRequestMeterMiddleware.Invoke(HttpContext context)
   at App.Metrics.AspNetCore.Tracking.Middleware.ActiveRequestCounterEndpointMiddleware.Invoke(HttpContext context)
   at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext)
   at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider)
   at Convey.WebApi.Exceptions.ErrorHandlerMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
[04:38:07 INF] Request finished HTTP/1.1 POST http://localhost:5007/parcels application/json 680 - 400 - application/json 285.6220ms