Closed an2508374 closed 9 months ago
It was the issue with outbox. It should be working on external_api_integration branch, though it probably won't work with already created accounts. What happened is, because of the outbox the customers in parcels and orders service were created with random ids. Now they should be created with the same id as in customer service. So only new accounts will be working
I can confirm that it works nice on external_api_integration with newly created accounts. Problem solved, thank you.
In both cases customerId is in payload and then I have this exception despite the fact that customer with this id is in CustomersService repository. Parcels and Orders seems to have their owns customer repositories and maybe somewhere there is a source of that problem. Commenting some lines with checking customerId in AddParcelHandler or CreateOrderHandler allows to temporarily omit that issue.