-
Notifications
You must be signed in to change notification settings - Fork 845
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
Signup posts generates 401 #21
Comments
Appears to be when username is shorter than 3 letters and this error does not end up in the returned message |
Hi, you can validate the request body. Kindly read following tutorial: |
Getting 401 issue while calling singup api. any solutions can be suggested? |
Above curl request work fine. Below getting the 401 as you.
|
Addon ValidationExceptionHandler Class. See in the article: https://www.bezkoder.com/spring-boot-validate-request-body/ |
@thomaschristensen |
No, but I haven't tried with newer versions |
on java nothing on console ***property |
Add this ExceptionHandler class for exception handling of validation issues `import org.springframework.http.HttpStatus; import java.util.HashMap; @RestControllerAdvice
}` |
When trying to create users following the example in the docs I get 401 on posting to /api/auth/signup
The text was updated successfully, but these errors were encountered: