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

执行云函数出错 #47

Closed
24684623 opened this issue Feb 19, 2022 · 3 comments
Closed

执行云函数出错 #47

24684623 opened this issue Feb 19, 2022 · 3 comments
Labels
缺少依赖 云函数: 没绑定层或上传的依赖文件不对 | 其他: 没安装依赖

Comments

@24684623
Copy link

START RequestId: 346ac2e4-9564-4201-8421-e5885beb24dd
Init Report RequestId: 346ac2e4-9564-4201-8421-e5885beb24dd Coldstart: 851ms (PullCode: 71ms InitRuntime: 10ms InitFunction: 770ms) Memory: 128MB MemUsage: 16.10MB
ERROR RequestId: 346ac2e4-9564-4201-8421-e5885beb24dd Result: {"errorCode": -1, "errorMessage": "Traceback (most recent call last): File "/var/runtime/python3/bootstrap.py", line 133, in init_handler func_handler = get_func_handler(file.rsplit(".", 1)[0], func) File "/var/runtime/python3/bootstrap.py", line 159, in get_func_handler mod = imp.load_module(mname, *imp.find_module(mname)) File "/var/lang/python3/lib/python3.6/imp.py", line 234, in load_module return load_source(name, filename, file) File "/var/lang/python3/lib/python3.6/imp.py", line 172, in load_source module = _load(spec) File "", line 675, in _load File "", line 655, in _load_unlocked File "", line 678, in exec_module File "", line 205, in _call_with_frames_removed File "/var/user/index.py", line 6, in import json5 ModuleNotFoundError: No module named 'json5'", "statusCode": 443}
END RequestId: 346ac2e4-9564-4201-8421-e5885beb24dd
Report RequestId: 346ac2e4-9564-4201-8421-e5885beb24dd Duration: 0ms Memory: 128MB MemUsage: 16.10MB
START RequestId:346ac2e4-9564-4201-8421-e5885beb24dd
ERROR RequestId:346ac2e4-9564-4201-8421-e5885beb24dd 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 6, in \u003cmodule\u003e\n import json5\nModuleNotFoundError: No module named 'json5'","statusCode":443}
END RequestId:346ac2e4-9564-4201-8421-e5885beb24dd
Report RequestId:346ac2e4-9564-4201-8421-e5885beb24dd Duration:0ms Memory:128MB MemUsage:0.000000MB

@chen310
Copy link
Owner

chen310 commented Feb 19, 2022

#28

@chen310 chen310 closed this as completed Feb 19, 2022
@24684623
Copy link
Author

添加过依赖了 删除后重新添加还是不行

@chen310
Copy link
Owner

chen310 commented Feb 19, 2022

依赖如果添加正确的话,应该不会出现这个问题才对

@chen310 chen310 added the 缺少依赖 云函数: 没绑定层或上传的依赖文件不对 | 其他: 没安装依赖 label Mar 22, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
缺少依赖 云函数: 没绑定层或上传的依赖文件不对 | 其他: 没安装依赖
Projects
None yet
Development

No branches or pull requests

2 participants