Open wangai14 opened 3 years ago
START RequestId:5ef8836a-6dea-4a59-85b0-6debd451cec9
ERROR RequestId:5ef8836a-6dea-4a59-85b0-6debd451cec9 Result:{"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/index.py\", line 4, in \u003cmodule\u003e\n from activity.unicom.dailySign import SigninApp\n File \"/var/user/activity/unicom/dailySign.py\", line 6, in \u003cmodule\u003e\n from utils.toutiao_reward import TouTiao\n File \"/var/user/utils/toutiao_reward.py\", line 4, in \u003cmodule\u003e\n from utils.common import Common\n File \"/var/user/utils/common.py\", line 5, in \u003cmodule\u003e\n from utils.config import data_storage_server_url, Authorization\n File \"/var/user/utils/config.py\", line 17, in \u003cmodule\u003e\n ':'.join([username, password]).encode('clack')\nLookupError: unknown encoding: clack","statusCode":443}
END RequestId:5ef8836a-6dea-4a59-85b0-6debd451cec9
Report RequestId:5ef8836a-6dea-4a59-85b0-6debd451cec9 Duration:0ms Memory:128MB MemUsage:0.000000MB
utils/config.py
文件中 ':'.join([username, password]).encode('clack')
这句改成':'.join([username, password]).encode('utf8')
这里的utf8
是编码格式不是用户名,推荐华为云函数工作流部署
你看看 对吗,作者