Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Requests to resolve server hungs up #2244

Open
IgnatovDan opened this issue Feb 22, 2022 · 0 comments
Open

Requests to resolve server hungs up #2244

IgnatovDan opened this issue Feb 22, 2022 · 0 comments

Comments

@IgnatovDan
Copy link

IgnatovDan commented Feb 22, 2022

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant