name: 'test'})
nil
iex(2)>
20:42:24.429 [debug] Locating aggregate process for `FleetlyCallbacks.Callback` with UUID "test"
{:error, :aggregate_execution_failed}
iex(3)>
20:42:24.439 [error] Task #PID<0.312.0> started from #PID<0.303.0> terminating
** (stop) exited in: GenServer.call({:via, Registry, {Commanded.Registration.LocalRegistry, {FleetlyCallbacks.Callback, "test"}}}, {:execute_command, %Commanded.Aggregates.ExecutionContext{causation_id: "d65b0ec2-8fb7-4754-81b8-cf8ad1a9eafc", command: %FleetlyCallbacks.Commands.CreateCallback{access_token: 'teset', name: 'test'}, correlation_id: "a25bf3c0-d689-47d1-91f2-ac9c4b6f16f9", function: :execute, handler: FleetlyCallbacks.Callback, lifespan: Commanded.Aggregates.DefaultLifespan, metadata: %{}, retry_attempts: 10}}, 5000)
** (EXIT) no process: the process is not alive or there's no process currently associated with the given name, possibly because its application isn't started
(elixir) lib/gen_server.ex:999: GenServer.call/3
(elixir) lib/task/supervised.ex:90: Task.Supervised.invoke_mfa/2
(elixir) lib/task/supervised.ex:35: Task.Supervised.reply/5
(stdlib) proc_lib.erl:247: :proc_lib.init_p_do_apply/3
Function: &Commanded.Aggregates.Aggregate.execute/4
Args: [FleetlyCallbacks.Callback, "test", %Commanded.Aggregates.ExecutionContext{causation_id: "d65b0ec2-8fb7-4754-81b8-cf8ad1a9eafc", command: %FleetlyCallbacks.Commands.CreateCallback{access_token: 'teset', name: 'test'}, correlation_id: "a25bf3c0-d689-47d1-91f2-ac9c4b6f16f9", function: :execute, handler: FleetlyCallbacks.Callback, lifespan: Commanded.Aggregates.DefaultLifespan, metadata: %{}, retry_attempts: 10}, 5000]
iex(3)>
В какую сторону смотреть?
протрассируйте Commanded.Aggregates.Supervisor.open_aggregate, ощущение, что aggregate у вас стартует и тут же дохнет
Обсуждают сегодня