-
Notifications
You must be signed in to change notification settings - Fork 38
Closed
Labels
app: apiConcerns the APIConcerns the APIpriority: highIndicates a high priority issueIndicates a high priority issueruntime: dockerConcerns the Docker Runtime HostConcerns the Docker Runtime Hoststatus: investigateAn issue that needs to be investigated more thoroughlyAn issue that needs to be investigated more thoroughlytype: bugSomething isn't workingSomething isn't working
Milestone
Description
hi all, i have an issue that i can manage. I've installed synapse with the standar docker-compose file ( mongo + eventbus + synapse). Installed a simple workflow based on a start status of type event:
{
"id": "testevent",
"name": "TestEvent",
"version": "0.1.0",
"specVersion": "0.8",
"events": [
{
"name": "Event",
"source": "test.me",
"type": "test.me.event"
}
],
"states": [
{
"name": "Wait For Message",
"type": "event",
"onEvents": [
{
"actions": [],
"eventRefs": [
"Event"
],
"eventDataFilter": {}
}
],
"end": true
}
]
}
the workflow starts correctly receiving this event (even more than once)
{
"id": "123",
"source": "test.me",
"type": "test.me.event",
"specversion": "1.0",
"data": {
"processid" : "23456"
}
}
But if i stop che docker-compose and then restart it, after submitting the event again i get:
synapse-synapse-1 | Request starting HTTP/1.1 POST http://localhost:42286/ application/cloudevents+json 200
synapse-synapse-1 | [11/08/2022 12:39:33] info: Synapse.Application.Commands.Correlations.V1CorrelateEventCommandHandler[0]
synapse-synapse-1 | Processing event with id '123', type 'test.me.event' and source 'test.me'...
synapse-synapse-1 | [11/08/2022 12:39:33] info: Microsoft.AspNetCore.Hosting.Diagnostics[2]
synapse-synapse-1 | Request finished HTTP/1.1 POST http://localhost:42286/ application/cloudevents+json 200 - 202 0 - 9.1532ms
synapse-synapse-1 | [11/08/2022 12:39:33] fail: Synapse.Application.Services.CloudEventCorrelator[0]
synapse-synapse-1 | An error occured while processing an incoming cloud event: System.NullReferenceException: Object reference not set to an instance of an object.
synapse-synapse-1 | at Synapse.Application.Commands.Correlations.V1CorrelateEventCommandHandler.HandleAsync(V1CorrelateEventCommand command, CancellationToken cancellationToken) in /src/src/core/Synapse.Application/Commands/Correlations/v1/V1CorrelateEventCommand.cs:line 95
synapse-synapse-1 | at Synapse.Application.Commands.Correlations.V1CorrelateEventCommandHandler.HandleAsync(V1CorrelateEventCommand command, CancellationToken cancellationToken) in /src/src/core/Synapse.Application/Commands/Correlations/v1/V1CorrelateEventCommand.cs:line 95
synapse-synapse-1 | at Neuroglia.Mediation.FluentValidationMiddleware`2.HandleAsync(TRequest request, RequestHandlerDelegate`1 next, CancellationToken cancellationToken)
synapse-synapse-1 | at Neuroglia.Mediation.DomainExceptionHandlingMiddleware`2.HandleAsync(TRequest request, RequestHandlerDelegate`1 next, CancellationToken cancellationToken)
synapse-synapse-1 | at Neuroglia.Mediation.RequestPipeline`2.HandleAsync(IRequest`1 request, IServiceProvider serviceProvider, CancellationToken cancellationToken)
synapse-synapse-1 | at Neuroglia.Mediation.Mediator.ExecuteAsync[TResult](IRequest`1 request, CancellationToken cancellationToken)
synapse-synapse-1 | at Synapse.IMediatorExtensions.ExecuteAndUnwrapAsync[TResult](IMediator mediator, ICommand`1 request, CancellationToken cancellationToken) in /src/src/core/Synapse.Application/Extensions/IMediatorExtensions.cs:line 39
synapse-synapse-1 | at Synapse.Application.Services.CloudEventCorrelator.CorrelateAsync(IServiceProvider serviceProvider, CloudEvent e, CancellationToken cancellationToken) in /src/src/core/Synapse.Application/Services/CloudEventCorrelator.cs:line 82
The only way of get rid of this is removing the workflow and installing it.
Any Idea?
Metadata
Metadata
Assignees
Labels
app: apiConcerns the APIConcerns the APIpriority: highIndicates a high priority issueIndicates a high priority issueruntime: dockerConcerns the Docker Runtime HostConcerns the Docker Runtime Hoststatus: investigateAn issue that needs to be investigated more thoroughlyAn issue that needs to be investigated more thoroughlytype: bugSomething isn't workingSomething isn't working