Closed bastihav closed 4 years ago
This is a problem with the current API. Vue wants to have the duplicate error together with the validation errors.
The Problem is here (line 88 in UserServiceImpl)
ref.ask[Option[User]](replyTo => GetUser(replyTo)).flatMap {
case Some(_) =>
throw CustomException.Duplicate
case None =>
//Validate PostMessage
val validationErrorsFuture = postMessageUser match {
The username is used before it get checked (and a empty username creates a time out).
Describe the bug Empty user results in akka timeout. Seems to be broken for all requests without a username.
To Reproduce
Expected behavior 422
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context Add any other context about the problem here.