Flask jwt extended error – change @jwt_required to @jwt_required()

Flask jwt extended error – change @jwt_required to @jwt_required()

use double () at the end.

Even chatgpt was providing incorrect answer.

Solution

Change @jwt_required to

@jwt_required()

 

Traceback (most recent call last):
File “C:\Users\AHKM\AppData\Local\Programs\Python\Python39\lib\site-packages\flask\app.py”, line 2213, in __call__
return self.wsgi_app(environ, start_response)
File “C:\Users\AHKM\AppData\Local\Programs\Python\Python39\lib\site-packages\flask\app.py”, line 2193, in wsgi_app
response = self.handle_exception(e)
File “C:\Users\AHKM\AppData\Local\Programs\Python\Python39\lib\site-packages\flask\app.py”, line 2190, in wsgi_app
response = self.full_dispatch_request()
File “C:\Users\AHKM\AppData\Local\Programs\Python\Python39\lib\site-packages\flask\app.py”, line 1486, in full_dispatch_request
rv = self.handle_user_exception(e)
File “C:\Users\AHKM\AppData\Local\Programs\Python\Python39\lib\site-packages\flask\app.py”, line 1484, in full_dispatch_request
rv = self.dispatch_request()
File “C:\Users\AHKM\AppData\Local\Programs\Python\Python39\lib\site-packages\flask\app.py”, line 1469, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
TypeError: wrapper() missing 1 required positional argument: ‘fn’

 

Tony BB
 

TonyBB is a Coach , marketer, hypnotist and a founder of RSKVF Production who specializes in providing simple, affordable, and easy to use solutions for Life.

Click Here to Leave a Comment Below 0 comments

Leave a Reply: