Closed its-a-feature closed 3 years ago
figured it out. Despite the error bubbling up into sanic_jwt's decorator, it's actually an issue in sanic's parsing of paths and restricted keywords. i.e. i changed
@mythic.route(
mythic.config["API_BASE"] + "/callbacks/<id:int>/all_tasking", methods=["GET"]
)
to
@mythic.route(
mythic.config["API_BASE"] + "/callbacks/<cid:int>/all_tasking", methods=["GET"]
)
(id -> cid) and it worked just fine.
I just updated to the latest Sanic (21.3.2) from (20.6) and the latest sanic-jwt (1.6), but now I'm getting some weird error about an unexpected keyword argument:
The function is defined:
It worked before with Sanic 20.6. Any thoughts?