Skip to content

entity.parse.failed - Erro ao criar novo usuário #225

@Cemanuele

Description

@Cemanuele

Descreva o bug
Ao tentar incluir um novo usuário, gerou o erro 500.

Reproduzir
Foram enviados os seguintes dados:

Body:
{
"nome": Fulano de Tal,
"email": [email protected],
"password": fulano,
"administrador": true
}

E obtive o seguinte retorno:

HTTP/1.1 500 Internal Server Error
Date: Sat, 06 Mar 2021 21:49:34 GMT
Content-Type: application/json; charset=utf-8
Content-Length: 387
Connection: keep-alive

{
"message": "Abra uma issue informando essa resposta. https://github.com/PauloGoncalvesBH/ServeRest/issues",
"error": {
"expose": true,
"statusCode": 400,
"status": 400,
"body": "{\n "nome": Fulano de Tal,\n "email": [email protected],\n "password": fulano,\n "administrador": true\n}\n\n",
"type": "entity.parse.failed"
}
}

java.lang.AssertionError: 1 expectation failed.
Expected status code <200> but was <500>.

Comportamento esperado
Expected status code <200> but was <500>.

Capturas de tela
image

Contexto (preencha as seguintes informações):
  - Sistema operacional: Windows 10
  - Versão do ServeRest v2.20.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions