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

AskTimeoutException in shopping-cart-java #199

Closed
shrutiichandra opened this issue Jan 27, 2021 · 1 comment
Closed

AskTimeoutException in shopping-cart-java #199

shrutiichandra opened this issue Jan 27, 2021 · 1 comment

Comments

@shrutiichandra
Copy link

Hi,

I am trying to run shopping-cart-java

For the request curl -H "Content-Type: application/json" -X POST -d '{"itemId": 456, "quantity": 2}' http://localhost:9000/shoppingcart/123, I am getting the following exception:

{"name":"akka.pattern.AskTimeoutException: Ask timed out on [EntityRef(EntityTypeKey[com.example.shoppingcart.impl.ShoppingCartEntity$Command](ShoppingCart), 123)] after [5000 ms]. Message of type [com.example.shoppingcart.impl.ShoppingCartEntity$AddItem]. A typical reason for AskTimeoutExceptionis that the recipient actor didn't send a reply.","detail":"akka.pattern.AskTimeoutException: Ask timed out on [EntityRef(EntityTypeKey[com.example.shoppingcart.impl.ShoppingCartEntity$Command](ShoppingCart), 123)] after [5000 ms]. Message of type [com.example.shoppingcart.impl.ShoppingCartEntity$AddItem]. A typical reason forAskTimeoutExceptionis that the recipient actor didn't send a reply.\n"}%

I increased lagom.persistence.ask-timeout in application.conf but it didn't solve the issue either

@shrutiichandra
Copy link
Author

was missing docker-compose up -d step

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant