SaintAngeLs / courier_app

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

CustomerNotFoundException in ParcelsService and OrdersService during creating inquiry or order #107

Closed an2508374 closed 9 months ago

an2508374 commented 9 months ago

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. problem1 problem2 Problem3

eggwhat commented 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

an2508374 commented 9 months ago

I can confirm that it works nice on external_api_integration with newly created accounts. Problem solved, thank you.