Skip to content

Error 500 on Basic Usage sample  #74

@reiven

Description

@reiven

Hi!

I'm just testing the Basic Usage sample and doing a POST to /login without parameters is giving 500 internal server error

    username = request.json.get('username', None)
AttributeError: 'NoneType' object has no attribute 'get'

The request should be checked with

if request.is_json:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions