Skip to content
This repository was archived by the owner on Apr 5, 2023. It is now read-only.
This repository was archived by the owner on Apr 5, 2023. It is now read-only.

jwt_required is not defined #11

@david1983

Description

@david1983

on examples/authorization

 | INFO:     172.18.0.1:46692 - "POST / HTTP/1.1" 500 Internal Server Error
mongoke_1      | 2020-11-29 09:28:35 httptools_impl ERROR Exception in ASGI application
mongoke_1      | Traceback (most recent call last):
mongoke_1      |   File "/usr/local/lib/python3.7/site-packages/uvicorn/protocols/http/httptools_impl.py", line 385, in run_asgi
mongoke_1      |     result = await app(self.scope, self.receive, self.send)
mongoke_1      |   File "/usr/local/lib/python3.7/site-packages/uvicorn/middleware/proxy_headers.py", line 45, in __call__
mongoke_1      |     return await self.app(scope, receive, send)
mongoke_1      |   File "/usr/local/lib/python3.7/site-packages/starlette/middleware/errors.py", line 178, in __call__
mongoke_1      |     raise exc from None
mongoke_1      |   File "/usr/local/lib/python3.7/site-packages/starlette/middleware/errors.py", line 156, in __call__
mongoke_1      |     await self.app(scope, receive, _send)
mongoke_1      |   File "/usr/local/lib/python3.7/site-packages/starlette/middleware/base.py", line 25, in __call__
mongoke_1      |     response = await self.dispatch_func(request, self.call_next)
mongoke_1      |   File "./generated/middleware.py", line 26, in dispatch
mongoke_1      |     if jwt_required:
mongoke_1      | NameError: name 'jwt_required' is not defined

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