resolve
resolve copied to clipboard
Requests to resolve server hungs up
Describe the bug I am working with tutorial https://reimagined.github.io/resolve/docs/tutorial/ and finished the https://reimagined.github.io/resolve/docs/tutorial/#lesson-2---read-side---create-a-read-model-to-query-shopping-lists step.
I started the resolve server: 'yarn dev'
Then I tried to get data from my read model: curl http://localhost:3000/api/query/ShoppingLists/all -H "Content-Type: application/json" and the request hungs up.
I tried to create a new entity and this request hungs up also: curl http://localhost:3000/api/commands -H "Content-Type: application/json" -X POST -d @createShoppingList.xml +
{
"aggregateName": "ShoppingList",
"type": "createShoppingList",
"aggregateId": "shopping-list-2022_-2_22_3", - here I passed several different ids
"payload": {
"name": "List 2022_-2_22_3"
}
}
There were no my 'log' entries in console.
So, I have stopped the resolve server by "ctrl+c" and before the process was finished several my 'createShoppingList' log entries appears in console (the entity was created). There were no hung ups after I have started the resolve server.
To Reproduce Don't know.
Expected behavior No hung ups and error messages in resolve server console.
Screenshots no
Desktop (please complete the following information):
- OS: Windows
- Browser: no, I used console
- Node.js Version: v16.13.0.
- ReSolve Version: "@resolve-js/[email protected]": from yarn.lock