exqlnet / chaoxing_sign Goto Github PK
View Code? Open in Web Editor NEW超星学习通自动签到 Python 脚本
License: GNU General Public License v3.0
超星学习通自动签到 Python 脚本
License: GNU General Public License v3.0
部署之后怎么操做
docker-compose up -d
在上面那个代码运行的时候,会卡住下载
Creating network "chaoxing_default" with the default driver
Pulling redis (redis:3.2)...
3.2: Pulling from library/redis
f17d81b4b692: Pull complete
b32474098757: Pull complete
8980cabe8bc2: Pull complete
58af19693e78: Pull complete
a977782cf22d: Pull complete
9c1e268980b7: Pull complete
Building cx_web
Step 1/4 : FROM python:3.8
3.8: Pulling from library/python
e22122b926a1: Pull complete
f29e09ae8373: Pull complete
e319e3daef68: Pull complete
e499244fe254: Pull complete
5a6ebed20e89: Downloading [> ] 3.214MB/192.3MB
56b703a5a371: Download complete
dec810778c22: Download complete
505aac614a24: Download complete
36deae172a15: Download complete
我大概知道事因为服务器连接外网的问题,我是想问问怎么能解决下。麻烦大佬了
日志:
ERROR RequestId:e563c248-acbd-4dc1-9315-3990536cd3ad Result:{"errorCode":1,"errorMessage":"user code exception caught","stackTrace":"Traceback (most recent call last):\n File "/var/user/redis/connection.py", line 585, in _connect\n socket.SOCK_STREAM):\n File "/var/lang/python3/lib/python3.6/socket.py", line 743, in getaddrinfo\n for res in _socket.getaddrinfo(host, port, family, type, proto, flags):\nsocket.gaierror: [Errno -2] Name or service not known\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File "/var/runtime/python3/bootstrap.py", line 176, in handle\n ret = self.real_handler(event, context)\n File "/var/user/cx_tx_scf.py", line 15, in main_handler\n s = AutoSign(username, password, server_chan_key, redis_host="\u003credis-host\u003e", redis_port=6379)\n File "/var/user/cx.py", line 31, in init\n if not self.check_cookies_status():\n File "/var/user/cx.py", line 45, in check_cookies_status\n cookies_byte = self.cache.get(self.username + "_cookies")\n File "/var/user/redis/client.py", line 1606, in get\n return self.execute_command('GET', name)\n File "/var/user/redis/client.py", line 898, in execute_command\n conn = self.connection or pool.get_connection(command_name, **options)\n File "/var/user/redis/connection.py", line 1192, in get_connection\n connection.connect()\n File "/var/user/redis/connection.py", line 563, in connect\n raise ConnectionError(self._error_message(e))\nredis.exceptions.ConnectionError: Error -2 connecting to \u003credis-host\u003e:6379. Name or service not known.","statusCode":430}
Report RequestId:e563c248-acbd-4dc1-9315-3990536cd3ad Duration:71ms Memory:512MB MemUsage:23.976562MB
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.