cloudblue / django-cqrs

django-cqrs is an Django application, that implements CQRS data synchronization between several Django micro-services
https://django-cqrs.readthedocs.io/en/latest/
Apache License 2.0
122 stars 24 forks source link

Problem with CQRS_ID #69

Closed CamiloAguilarL closed 2 years ago

CamiloAguilarL commented 2 years ago

I've been working with Django CQRS lately and today I had a problem with it. Following the Getting started section from the docs all was working nice but when I tried to add an entity either from the django admin or with the sync command, it throws this error for each entity:

('CQRS is failed: pk = 7 (student), correlation_id = None, retries = 0.',) No model with such CQRS_ID: student. Model for cqrs_id student is not found.

Reading the example and the docs didn't help me. Thanks in advance

maxipavlovic commented 2 years ago

Hi, @CamiloAguilarL. Let's see.

You are getting this error on Replica side after configuring everything from this section https://django-cqrs.readthedocs.io/en/latest/getting_started.html#replica-service ?

maxipavlovic commented 2 years ago

@CamiloAguilarL I've checked your CQRS project and made a fork to try myself if something goes wrong.

Seems everything is alright for me in this branch without any code changes (only configuration ones): https://github.com/maxipavlovic/proyectoCQRS/tree/check-cqrs-problem

I've added docker-compose to run the environment all together and then created a Student object in master container and verified that this Student was CQRSed to replica service correctly.

maxipavlovic commented 2 years ago

Closing as couldn't reproduce and there was no response for a while.