-
Notifications
You must be signed in to change notification settings - Fork 187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[教程]如何部署在腾讯云函数 #3
Comments
使用的telegram推送的注意,腾讯云不提供代理的,建议使用相关反代。 |
START RequestId:4d1b76ee-2cf1-47b2-9eb2-9a33ec33d1c6 ERROR RequestId:4d1b76ee-2cf1-47b2-9eb2-9a33ec33d1c6 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/BiliExp.py", line 7, in \u003cmodule\u003e\n from BiliClient import asyncbili\n File "/var/user/BiliClient/init.py", line 12, in \u003cmodule\u003e\n from .asyncBiliApi import asyncBiliApi as asyncbili #B站接口模块,由aiohttp模块实现异步http请求\n File "/var/user/BiliClient/asyncBiliApi.py", line 2, in \u003cmodule\u003e\n from aiohttp import ClientSession\nModuleNotFoundError: No module named 'aiohttp'","statusCode":443} END RequestId:4d1b76ee-2cf1-47b2-9eb2-9a33ec33d1c6 Report RequestId:4d1b76ee-2cf1-47b2-9eb2-9a33ec33d1c6 Duration:0ms Memory:128MB MemUsage:0.000000MB |
请问这是什么情况啊 |
没做第7步……别擅自发挥了 |
好的谢谢 但是我第七步命令做了的 |
我补充了一张图片在步骤内,完成后大致是那样的,你肯定是缺少了/报错了,建议再试一次 |
感谢大佬 我用懒人包成功 谢谢 谢谢 |
请问一下大佬 这个云函数里面怎么设置才能自动转发抽奖,我好友动态里面有很多抽奖的。我运行云函数日志总是显示调用失败而且没有推送。万分感谢 |
应该是代码问题,我不清楚。 |
你是真的看了教程后实践过发现不能才来问的吗? |
大兄弟这个不是这么玩的 ------------------ 原始邮件 ------------------
***@***.***>
发送时间: 2021年6月14日(星期一) 下午4:11
***@***.***>;
***@***.******@***.***>;
主题: Re: [MaxSecurity/BiliExper] [教程]如何部署在腾讯云函数 (#3)
|
你完全没看我写的这个教程,那就不应该来问我为什么不能。 |
可以抽空更新一下懒人包吗,麻烦了 |
已更新,其实你自己下载这个项目,然后覆盖就行了…… |
谢谢,麻烦了 |
还是不能正常运行START RequestId:395eadd3-2125-4149-97bc-f27e5fa0d36f ERROR RequestId:395eadd3-2125-4149-97bc-f27e5fa0d36f Result:{"errorCode":1,"errorMessage":"user code exception caught","stackTrace":"Traceback (most recent call last):\nTypeError: main() takes 1 positional argument but 2 were given","statusCode":430} END RequestId:395eadd3-2125-4149-97bc-f27e5fa0d36f Report RequestId:395eadd3-2125-4149-97bc-f27e5fa0d36f Duration:1ms Memory:128MB MemUsage:25.882812MB |
|
真是艰难阿,麻烦大佬了,再次表示感谢 |
成功了,记录下为什么报下面的错(日志找不到了借上面楼的错用下,报错时我看是一样的错) 换成上面这三行就行 ===================================== ERROR RequestId:4d1b76ee-2cf1-47b2-9eb2-9a33ec33d1c6 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/BiliExp.py", line 7, in \u003cmodule\u003e\n from BiliClient import asyncbili\n File "/var/user/BiliClient/init.py", line 12, in \u003cmodule\u003e\n from .asyncBiliApi import asyncBiliApi as asyncbili #B站接口模块,由aiohttp模块实现异步http请求\n File "/var/user/BiliClient/asyncBiliApi.py", line 2, in \u003cmodule\u003e\n from aiohttp import ClientSession\nModuleNotFoundError: No module named 'aiohttp'","statusCode":443} END RequestId:4d1b76ee-2cf1-47b2-9eb2-9a33ec33d1c6 Report RequestId:4d1b76ee-2cf1-47b2-9eb2-9a33ec33d1c6 Duration:0ms Memory:128MB MemUsage:0.000000MB ======================================================================= |
我不“瞎BB”了
The text was updated successfully, but these errors were encountered: