Example throws "Expected version not set" error #249
Unanswered
yaguiman72
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, excelent example to dig in in the world of CQRS, EventSourcing and EventStoredDB.
![image](https://private-user-images.githubusercontent.com/47893053/328963022-fddf4781-518e-4bc9-9ce8-830da11fb5e5.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk1OTI4ODksIm5iZiI6MTcxOTU5MjU4OSwicGF0aCI6Ii80Nzg5MzA1My8zMjg5NjMwMjItZmRkZjQ3ODEtNTE4ZS00YmM5LTljZTgtODMwZGExMWZiNWU1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjI4VDE2MzYyOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWVmMGE3ZDU2ZWViNDQxMGZkNzUwOGE0N2I0YjI0MDQ5MzUxYjU3NWE4MTM0MmMxYjJiMTg2MDE5MmM4ZGM3NGEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.FRq5D8kNgNurLUY3BRkii2zQOSB-rxcpPukTTW7_w4I)
I'm trying to execute the C# EventStoreDB Ecommerce example and I couldn't add a product to the cart because I always get the error "Expected version not set" because expectedStreamRevisionProvider.Value is null, even after I created a cart.
Is it something wrong with the source code?
Does ExpectedResourceVersionProvider is working in the example?
Thanks and regards,
Martin
Beta Was this translation helpful? Give feedback.
All reactions