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

jwt_required is not defined #11

Open
david1983 opened this issue Nov 29, 2020 · 0 comments
Open

jwt_required is not defined #11

david1983 opened this issue Nov 29, 2020 · 0 comments

Comments

@david1983
Copy link

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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant