tencentyun / serverless-demo

demo for serverless
109 stars 103 forks source link

OAuth2.0授权服务器demo有问题 #198

Open 361so opened 1 year ago

361so commented 1 year ago

从OAuth2.0授权服务器模板创建后,访问接口,提示如下错误: image

361so commented 1 year ago

{"errorCode":1,"errorMessage":"Traceback (most recent call last):\n File \"/var/runtime/python3/bootstrap.py\", line 133, in init_handler\n func_handler = get_func_handler(file.rsplit(\".\", 1)[0], func)\n File \"/var/runtime/python3/bootstrap.py\", line 159, in get_func_handler\n mod = imp.load_module(mname, *imp.find_module(mname))\n File \"/var/lang/python3/lib/python3.6/imp.py\", line 234, in load_module\n return load_source(name, filename, file)\n File \"/var/lang/python3/lib/python3.6/imp.py\", line 172, in load_source\n module = _load(spec)\n File \"\u003cfrozen importlib._bootstrap\u003e\", line 675, in _load\n File \"\u003cfrozen importlib._bootstrap\u003e\", line 655, in _load_unlocked\n File \"\u003cfrozen importlib._bootstrap_external\u003e\", line 678, in exec_module\n File \"\u003cfrozen importlib._bootstrap\u003e\", line 205, in _call_with_frames_removed\n File \"/var/user/sl_handler.py\", line 1, in \u003cmodule\u003e\n import app # Replace with your actual application\n File \"/var/user/app.py\", line 5, in \u003cmodule\u003e\n import python_jwt as jwt, jwcrypto.jwk as jwk, datetime\n File \"/var/user/python_jwt/init.py\", line 8, in \u003cmodule\u003e\n from jwcrypto.jws import JWS, JWSHeaderRegistry\n File \"/var/user/jwcrypto/jws.py\", line 7, in \u003cmodule\u003e\n from jwcrypto.jwa import JWA\n File \"/var/user/jwcrypto/jwa.py\", line 8, in \u003cmodule\u003e\n from cryptography.exceptions import InvalidSignature\n File \"/var/user/cryptography/init.py\", line 5\n from future import annotations\n ^\nSyntaxError: future feature annotations is not defined","requestId":"5709fc1ed6fda367cf2d8f896a5bad40","statusCode":443}