Skip to content
This repository was archived by the owner on Sep 27, 2022. It is now read-only.
This repository was archived by the owner on Sep 27, 2022. It is now read-only.

KeyError: 'profile' and KeyError: 'user' #20

Description

@leros

I am running the app in dev model. I tried to add a new article for a new user and got KeyError: 'profile' which was due to a problem of this code:

  .../flask-realworld-example-app/conduit/profile/serializers.py", line 18, in make_user
    return data['profile']`

Also, I got another key error when trying to update user profile:

  File "/Users/demo/learn-fullstack/flask-realworld-example-app/conduit/user/serializers.py", line 21, in make_user
    data = data['user']
KeyError: 'user'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions