- Put a pry in the event command handler in question for example
command_handler/create_cancellation
- Take a look at what's happening there:
- once you hit the pry (might be in the valid or invalid method) check out the request:
request.as_mash
- check out any errors
request.errors
andrequest.errors.full_messages
- Check out the error's event type
Shari::Repositories::EventRecord.order(:created_at).map(&:event_type)
- Then drill down into that event to see the message:
Shari::Repositories::EventRecord.order(:created_at).where(event_type: "reservation_acceptance_validation_failed")
This should give you a better picture of what's happening.