Comments (25)
使用的telegram推送的注意,腾讯云不提供代理的,建议使用相关反代。
例如使用 https://github.com/Zibri/cloudflare-cors-anywhere 借助cloudflare worker进行反代,推送地址填写 https://你的cloudflare worker地址/?https://api.telegram.org/bot{telegram_bot_token}/sendMessage
from biliexper.
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
from biliexper.
请问这是什么情况啊
from biliexper.
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步……别擅自发挥了
from biliexper.
好的谢谢 但是我第七步命令做了的
from biliexper.
好的谢谢 但是我第七步命令做了的
我补充了一张图片在步骤内,完成后大致是那样的,你肯定是缺少了/报错了,建议再试一次
在serverless文件夹内:
pip3 install -r requirements.txt -t ./
from biliexper.
感谢大佬 我用懒人包成功 谢谢 谢谢
from biliexper.
请问一下大佬 这个云函数里面怎么设置才能自动转发抽奖,我好友动态里面有很多抽奖的。我运行云函数日志总是显示调用失败而且没有推送。万分感谢
from biliexper.
请问一下大佬 这个云函数里面怎么设置才能自动转发抽奖,我好友动态里面有很多抽奖的。我运行云函数日志总是显示调用失败而且没有推送。万分感谢
应该是代码问题,我不清楚。
from biliexper.
请问大佬懒人包没有头文件怎么上传代码呢,这个仓库不能action啊
你是真的看了教程后实践过发现不能才来问的吗?
from biliexper.
from biliexper.
添加了腾讯云id和key后去action只显示Get started with GitHub Actions
Build, test, and deploy your code. Make code reviews, branch management, and issue triaging work the way you want. Select a workflow template to get started.Skip this and set up a workflow yourself
你完全没看我写的这个教程,那就不应该来问我为什么不能。
结果又来问该怎么做?不是写在这里吗?能好好看了再提问吗…
from biliexper.
可以抽空更新一下懒人包吗,麻烦了
from biliexper.
可以抽空更新一下懒人包吗,麻烦了
已更新,其实你自己下载这个项目,然后覆盖就行了……
from biliexper.
可以抽空更新一下懒人包吗,麻烦了
已更新,其实你自己下载这个项目,然后覆盖就行了……
谢谢,麻烦了
from biliexper.
from biliexper.
与我无关,项目最新版就是这样
from biliexper.
与我无关,项目最新版就是这样
好的,谢谢
from biliexper.
我已经修复了,应该没问题
from biliexper.
我已经修复了,应该没问题
还是不能正常运行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
from biliexper.
还是不能正常运行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
代码没有问题,请自查问题。
现在的修改对云函数运行有影响,还不如不更新呢
试着修好了,云函数上能运行了
from biliexper.
还是不能正常运行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
代码没有问题,请自查问题。
现在的修改对云函数运行有影响,还不如不更新呢
试着修好了,云函数上能运行了
真是艰难阿,麻烦大佬了,再次表示感谢
from biliexper.
from biliexper.
serverless文件里原有的4个文件需要删除aliyun_serverless.yml
要不就是你某步没按教程做,要在serverless文件夹里运行sls deploy
from biliexper.
成功了,记录下为什么报下面的错(日志找不到了借上面楼的错用下,报错时我看是一样的错)
大佬#40教程没毛病,主要是第八步(上传好之后先安装依赖,终端cd src然后pip3 install -r requirements.txt -t ./,这样的话依赖全和源码混在一起,有时间的可以试试腾讯云的层管理...依赖可能一次安装不成功,多试几次)
这一步的requirements.txt文件内容要换成云函数的requirements.txt内容,
具体操作是把src文件夹里的requirements.txt内容换成src/serverless里的requirements.txt内容,
即把src文件夹里的requirements.txt内容换成
aiohttp==3.7.4
idna_ssl==1.1.0
json5==0.9.5
换成上面这三行就行
之后再执行大佬第八步就成了
=====================================
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
=======================================================================
from biliexper.
Related Issues (20)
- 报错:原因为ssl should be SSLContext, bool, Fingerprint or None, got False instead HOT 4
- 偶尔还是会出现心跳错误 HOT 3
- 这是什么问题,会卡住一段时间导致任务不按时结束 HOT 1
- 可能是最后一篇issue
- 风纪委员投票更新了,有大佬能做新的吗 HOT 12
- 粉丝勋章的读取被限制了(已解决),能限制一下发弹幕的速度吗 HOT 3
- 转发抽奖无限重复
- pushplus和wecom酱推送 HOT 1
- 关于腾讯云函数部署 HOT 4
- [教程]腾讯云函数部署 HOT 1
- 上传视频不能用了 HOT 2
- 找到了win本地部署的bat文件 HOT 1
- 我运行提示配置加载异常,原因为Expecting value: line 1 column 1 (char 0),这是什么原因,配置文件不管改没改都这样 HOT 2
- 大会员充电功能失效
- 获取粉丝勋章列表失败 用户不存在 HOT 1
- 直播心跳
- 腾讯云部署测试出现错误
- 获取经验异常,投币升级功能无效了
- 粉丝团徽章亲密度获取方式更改了 HOT 2
- 直播送出即将过期礼物异常,原因为'NoneType' object is not iterable
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from biliexper.