full-stack-fastapi-template icon indicating copy to clipboard operation
full-stack-fastapi-template copied to clipboard

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

Open McSlow opened this issue 7 years ago • 2 comments

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.

McSlow avatar Sep 14 '19 21:09 McSlow

ok. that was #43 .

McSlow avatar Sep 14 '19 22:09 McSlow

Thanks for reporting back and closing the issue :+1:

tiangolo avatar Apr 10 '20 19:04 tiangolo