Git Product home page Git Product logo

Comments (6)

charlessolar avatar charlessolar commented on June 6, 2024

@AbdoDabbas

Do you have code on that endpoint to handle that message type?

Should look something like

public Task Handle(Messages.OrderPlaced message, IMessageContext context) {
}

Scratch that, no you shouldn't see this event in the domain endpoint. For some reason its being delivered to your endpoint and NSB is complaining that you have no handlers for it.

I can't say for certain why your domain endpoint is receiving this message without seeing the code. But thats where you should look. Find out why the domain is receiving that event.

In the eventstore UI - find a projection called "Domain" something and paste the definition and maybe I can help debug it

from aggregates.net.

AbdoDabbas avatar AbdoDabbas commented on June 6, 2024

I couldn't see any projection with the name "domain", only found another one called "application" (which inside the "Source" contains "Domain"), here's the source of it:

function processEvent(s,e) {
    linkTo('application.1.0', e);
}
options({
  reorderEvents: false,
  processingLag: 0
})
fromCategories(['DOMAIN','OOB']).
when({
'Messages.OrderPlaced v1': processEvent
});

And here's a picture of the UI:
image

from aggregates.net.

AbdoDabbas avatar AbdoDabbas commented on June 6, 2024

I have the following:
WebAPI project which sends the commands to "Domain" project (contains the PlaceOrder handler), then the latter uses Apply<OrderPlaced> to save in EventStore and trigger the event, another project I have called "application" which contains a handler to OrderPlaced event.

from aggregates.net.

charlessolar avatar charlessolar commented on June 6, 2024

from aggregates.net.

AbdoDabbas avatar AbdoDabbas commented on June 6, 2024

To be honest I tried a lot of things but I don't remember I changed the names, but anyway I deleted ES db and logs and RabbitMQ's data, and started clean, it's working now, in some cases (not sure in which case yet) the Application receives the event twice, but I'm not sure if it's because I'm doing something wrong or not, I'll keep testing.

Regarding the projections, It keeps creating only one and named after the Application endpoint as you can see in the previous screenshot I sent.

BTW, I don't know if this is important but when I'm configuring the EventStore client and set the name in the connection the same in both the Domain app and Application app (I use the string "domain")

from aggregates.net.

charlessolar avatar charlessolar commented on June 6, 2024

Sure, makes sense a clean start would fix a lot of issues.
The Todo App uses a docker compose file - during development you should do docker-compose down and delete the previous images to be absolutely certain you are using your latest code.

Also do be sure to not name different endpoints the same name!

Theres several shell scripts in the eShop example to help with this process located here: https://github.com/charlessolar/eShopOnContainersDDD/tree/master/linux-cli

from aggregates.net.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.