Comments (7)
芜湖,太强了
from igotolibrary.
芜湖,太强了
仅仅一次在本地上定时抢座成功了,但是接下来在服务器上却还没成功
问题很多:当候选座位1占用时,座位2(设置的随机)就完全没用了,首先在座位1失败后,过了十几秒才开始座位2的抢座,虽然程序发现了还有三个空位,但是却error了???导致直接失败抢座。。
现在看来必须得只考虑定时抢座功能且只能靠,座位1(而且必须设定确切的位置,0也不行很不稳定,暂时没成功)。而且捡漏功能根本不行,不仅会被程序不断拿出运行,进而干扰其他任务,导致其他任务都失败,就算只布置捡漏功能,也不能捡漏成功
暂时就是这样
同时这个错误 File "/usr/local/lib/python3.6/site-packages/pymemcache/client/base.py", line 336, in _connect
sock.connect(sockaddr)
ConnectionRefusedError: [Errno 111] Connection refused
也是自始至终一直阴魂不散,问题还有很多
下面是mainloop.log
--#2020.10.16_20:12:31.103|[run] realtime_1_22226_22226 task-start=20:14:00 delay= 20.0 s, threadID= 1
----#2020.10.16_20:12:51.109|[run] realtime_1_22226_22226 task-start=20:14:00 delay= 20.0 s, threadID= 1
----#2020.10.16_20:13:11.129|[run] realtime_1_22226_22226 task-start=20:14:00 delay= 20.0 s, threadID= 1
----#2020.10.16_20:13:31.146|[run] realtime_1_22226_22226 task-start=20:14:00 delay= 5.0 s, threadID= 1
----#2020.10.16_20:13:36.151|[run] realtime_1_22226_22226 task-start=20:14:00 delay= 5.0 s, threadID= 1
----#2020.10.16_20:13:41.154|[run] realtime_1_22226_22226 task-start=20:14:00 delay= 5.0 s, threadID= 1
----#2020.10.16_20:13:46.156|[run] realtime_1_22226_22226 task-start=20:14:00 delay= 5.0 s, threadID= 1
----#2020.10.16_20:13:51.161|[run] realtime_1_22226_22226 task-start=20:14:00 delay= 5.0 s, threadID= 1
----#2020.10.16_20:13:56.167|[run] realtime_1_22226_22226 task-start=20:14:00 delay= 3.833 s, threadID= 1
----#2020.10.16_20:14:00.003|[run] realtime_1_22226_22226 try 候选一:[二楼报刊阅览室 (2楼)]的[160]号座位:
----#2020.10.16_20:14:00.003|[r_s] thread=realtime_1_22226_22226| lib_seat_info= 候选一:[二楼报刊阅览室 (2楼)]的[160]号座位: libid 20027 coordinate 9,28
----#2020.10.16_20:14:00.003|[r_s] thread=realtime_1_22226_22226| ||candidate libid= [('20027', '二楼报刊阅览室 (2楼)')]
----#2020.10.16_20:14:03.179|[r_s] thread=realtime_1_22226_22226| ||candidate seat= [('160', '9,28')]
----#2020.10.16_20:14:03.332|[r_s] thread=realtime_1_22226_22226| REG_HEXCODE_URL= https://static\.wechat\.v2\.traceint\.com/template/theme2/cache/layout/.+?
----#2020.10.16_20:14:03.343|[r_s] thread=realtime_1_22226_22226| hexch_js_url= https://static.wechat.v2.traceint.com/template/theme2/cache/layout/6jWRNNwenNyhpBMK.js ts= 3.3396907806396485
----#2020.10.16_20:14:03.459|[r_s] thread=realtime_1_22226_22226| ajax_url= "https://wechat.v2.traceint.com/index.php/reserve/get/"+"libid="+h+"&"+e.dec("7ahufnUCbNod8F6rJRPvgD")+"="+s+"&yzm="+t ts= 3.455573892593384
----#2020.10.16_20:14:06.464|[ERROR-BREAK]:func_name=reserve_a_seat
Traceback (most recent call last):
File "/root/igotolibrary/utils.py", line 34, in wrapper
return func(*args, **kwargs)
File "/root/igotolibrary/reserve.py", line 393, in reserve_a_seat
tmp = execjs.compile(hexch_js_code)
File "/usr/local/lib/python3.6/site-packages/execjs/init.py", line 61, in compile
return get().compile(source, cwd)
File "/usr/local/lib/python3.6/site-packages/execjs/_runtimes.py", line 21, in get
return get_from_environment() or _find_available_runtime()
File "/usr/local/lib/python3.6/site-packages/execjs/_runtimes.py", line 49, in _find_available_runtime
raise exceptions.RuntimeUnavailableError("Could not find an available JavaScript runtime.")
execjs._exceptions.RuntimeUnavailableError: Could not find an available JavaScript runtime.
----#2020.10.16_20:14:11.469|[run] realtime_1_22226_22226 try 候选二:[二楼报刊阅览室 (2楼)]的[0]号座位:
----#2020.10.16_20:14:11.469|[r_s] thread=realtime_1_22226_22226| lib_seat_info= 候选二:[二楼报刊阅览室 (2楼)]的[0]号座位: libid 20027 coordinate 0
----#2020.10.16_20:14:11.469|[r_s] thread=realtime_1_22226_22226| ||candidate libid= [('20027', '二楼报刊阅览室 (2楼)')]
----#2020.10.16_20:14:14.747|[r_s] thread=realtime_1_22226_22226| ||candidate seat= [('75', '20,12'), ('304', '20,99'), ('184', '9,16')]
----#2020.10.16_20:14:14.907|[r_s] thread=realtime_1_22226_22226| REG_HEXCODE_URL= https://static\.wechat\.v2\.traceint\.com/template/theme2/cache/layout/.+?
----#2020.10.16_20:14:14.918|[r_s] thread=realtime_1_22226_22226| hexch_js_url= https://static.wechat.v2.traceint.com/template/theme2/cache/layout/E6kb6MKjydDA3biK.js ts= 3.448747968673706
----#2020.10.16_20:14:15.059|[r_s] thread=realtime_1_22226_22226| ajax_url= "https://wechat.v2.traceint.com/index.php/reserve/get/"+"libid="+h+"&"+e.dec("im6G0wSB6QY1w0BS")+"="+s+"&yzm="+t ts= 3.589938735961914
----#2020.10.16_20:14:18.062|[ERROR-BREAK]:func_name=reserve_a_seat
Traceback (most recent call last):
File "/root/igotolibrary/utils.py", line 34, in wrapper
return func(*args, **kwargs)
File "/root/igotolibrary/reserve.py", line 393, in reserve_a_seat
tmp = execjs.compile(hexch_js_code)
File "/usr/local/lib/python3.6/site-packages/execjs/init.py", line 61, in compile
return get().compile(source, cwd)
File "/usr/local/lib/python3.6/site-packages/execjs/_runtimes.py", line 21, in get
return get_from_environment() or _find_available_runtime()
File "/usr/local/lib/python3.6/site-packages/execjs/_runtimes.py", line 49, in _find_available_runtime
raise exceptions.RuntimeUnavailableError("Could not find an available JavaScript runtime.")
execjs._exceptions.RuntimeUnavailableError: Could not find an available JavaScript runtime.
----#2020.10.16_20:14:18.062|[run] realtime_1_22226_22226 delaytime= 20
----#2020.10.16_20:14:38.074|[task_ending] trace_dct_ls= [{'exe_time': '2020.10.16_20:14:00.103', 'libid': '20027', 'clssrm': '二楼报刊阅览室 (2楼)', 'seat_num': '160', 'cordinate': '9,28', 'code': -1, 'msg': '致命错误, 服务器无响应导致退出', 'completed_flag': 'continue'}, {'exe_time': '2020.10.16_20:14:11.569', 'libid': '20027', 'clssrm': '二楼报刊阅览室 (2楼)', 'seat_num': '75', 'cordinate': '20,12', 'code': -1, 'msg': '致命错误, 服务器无响应导致退出', 'completed_flag': 'continue'}]
task= {'id': 2, 'task_id': 22226, 'userid'
----#2020.10.16_20:14:38.079|[task_ending] refersh memchcae, key= reserve_zi
----#2020.10.16_20:14:38.080|[ERROR-BREAK]:func_name=set_value
Traceback (most recent call last):
File "/root/igotolibrary/utils.py", line 34, in wrapper
return func(*args, **kwargs)
File "/root/igotolibrary/utils.py", line 1063, in set_value
self.client.set(key=key, value=value, expire=expire_second)
File "/usr/local/lib/python3.6/site-packages/pymemcache/client/base.py", line 379, in set
flags=flags)[key]
File "/usr/local/lib/python3.6/site-packages/pymemcache/client/base.py", line 968, in _store_cmd
self._connect()
File "/usr/local/lib/python3.6/site-packages/pymemcache/client/base.py", line 336, in _connect
sock.connect(sockaddr)
ConnectionRefusedError: [Errno 111] Connection refused
----#2020.10.16_20:14:38.080|[run] realtime_1_22226_22226 Done
from igotolibrary.
主要是作者写的时候写的服务器的脚本,自己用的话这个项目实在是有点大,
from igotolibrary.
想把主逻辑拿出来保留基本的功能就好,就是那个用execjs执行js代码有点问题,实在是整不明白
from igotolibrary.
想把主逻辑拿出来保留基本的功能就好,就是那个用execjs执行js代码有点问题,实在是整不明白
是的,现在服务器定时抢座执行不了
比较本地运行的log,execjs._exceptions.RuntimeUnavailableError: Could not find an available JavaScript runtime.是这里出现问题,但是我本地运行没出现这个问题,很奇怪
from igotolibrary.
想把主逻辑拿出来保留基本的功能就好,就是那个用execjs执行js代码有点问题,实在是整不明白
你知道sock.connect(sockaddr)
ConnectionRefusedError: [Errno 111] Connection refused这个error是什么原因吗
from igotolibrary.
服务器端口没开?
我本地就算抢座成功了也是这个错误,百度开端口都试过,不知道是那个端口
from igotolibrary.
Related Issues (18)
- cookies中wechatSESS_ID问题 HOT 3
- 今天不能用了 HOT 1
- 请问在哪里传入参数呀?
- 除了用fiddler等手动抓包获取cookie,有更好的自动监听获取字段的方法吗?
- 大佬好,这个方法还可以使用吗?怎么在个人电脑上部署配置啊? HOT 1
- 1
- 部署在自己租的服务器上(PC上也试了)了,任务也添加成功了,但是执行失败了,用#jg指令查询抢座结果程序报出错了,不知道怎么改了,大佬如果看见了,指点一下我吧,比我瞎琢磨一天都有用 HOT 11
- 部署在aliyun服务器成功了2次定时抢座 HOT 3
- 这个抢座助手怎么用呢? HOT 1
- 现在脚本还能用嘛
- 如何保持cookies
- 请问现在这个还能用么,除了wechatsessid还有别的坑么 HOT 2
- 哪里有配置文件ConfigParser? HOT 2
- 公众号不能用了,大佬 HOT 3
- 现在还能用吗 HOT 1
- 请问可以看一下 ConfigParser文件吗 HOT 2
- 大哥能放一下源码吗,小白想学习一下 HOT 2
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 igotolibrary.