Skip to content

/users/me returns 500 (GET/POST) - pydantic issue #66

@McSlow

Description

@McSlow

issue

hi, currently something seems to be wrong with the pydantic validations on the user model.
Any get/post to /users/me returns a 500.
Logs:

backend_1        | pydantic.error_wrappers.ValidationError: 1 validation error for User
backend_1        | response
backend_1        |   value is not a valid dict (type=type_error.dict)

Request payload looks like a dict :)
image

how to reproduce

fresh cookiecutter generated project, log with admin into frontend, change own username/email etc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions