一、说明:
使用程序wechat-chatgpt:https://github.com/fuergaosi233/wechat-chatgpt搭建本地化chatgpt集成到微信中,程序部署过程中的报错处理。
常见报错:
报错一:No chatgpt item in pool
报错二:No chatgpt account in pool
报错三:ChatGPT failed to refresh auth token. Error: 403 Forbidden #79
二、报错故障处理
1、针对“No chatgpt item in pool”和“No chatgpt account in pool”报错,通过如下方式处理
xtx@dockershell:~$ rm -rf wechat-chatgpt/ xtx@dockershell:~$ ll total 4972 drwxr-x--- 10 xtx xtx 4096 Dec 9 16:53 ./ drwxr-xr-x 3 root root 4096 Oct 24 06:28 ../ -rw------- 1 xtx xtx 12980 Dec 9 09:12 .bash_history -rw-r--r-- 1 xtx xtx 220 Jan 6 2022 .bash_logout -rw-r--r-- 1 xtx xtx 3771 Jan 6 2022 .bashrc drwx------ 2 xtx xtx 4096 Oct 24 06:28 .cache/ -rw-rw-r-- 1 xtx xtx 2377 Dec 9 16:28 config.yaml -rw-r--r-- 1 xtx xtx 4181 Oct 25 07:19 config.yml drwxrwx--x 48 xtx xtx 4096 Oct 27 17:55 data/ -rw-r--r-- 1 xtx xtx 788 Oct 25 05:56 device.json drwxrwxr-x 2 xtx xtx 4096 Dec 9 08:49 .dock/ -rw-r--r-- 1 xtx xtx 4972924 Oct 25 05:44 go-cqhttp_1.0.0-rc3_linux_amd64.deb drwxrwxr-x 3 xtx xtx 4096 Oct 25 05:57 .local/ drwxr-xr-x 2 xtx xtx 4096 Oct 25 07:19 logs/ -rw-rw-r-- 1 xtx xtx 10240 Oct 27 06:08 native-bridge.tar -rw-r--r-- 1 xtx xtx 807 Jan 6 2022 .profile -rw-r--r-- 1 xtx xtx 295 Oct 25 07:19 qrcode.png drwx------ 2 xtx xtx 4096 Oct 24 06:30 .ssh/ -rw-r--r-- 1 xtx xtx 0 Oct 24 06:29 .sudo_as_admin_successful drwxrwxr-x 4 xtx xtx 4096 Oct 25 05:57 ttt/ -rw-rw-r-- 1 xtx xtx 166 Nov 23 09:16 .wget-hsts -rw------- 1 xtx xtx 114 Dec 9 15:52 .Xauthority xtx@dockershell:~$ rm config.yaml xtx@dockershell:~$ git clone https://github.com/fuergaosi233/wechat-chatgpt.git Cloning into 'wechat-chatgpt'... remote: Enumerating objects: 359, done. remote: Counting objects: 100% (193/193), done. remote: Compressing objects: 100% (97/97), done. remote: Total 359 (delta 119), reused 131 (delta 95), pack-reused 166 Receiving objects: 100% (359/359), 415.19 KiB | 646.00 KiB/s, done. Resolving deltas: 100% (201/201), done. xtx@dockershell:~$ cd wechat-chatgpt/ xtx@dockershell:~/wechat-chatgpt$ docker build -t wechat-chatgpt . Sending build context to Docker daemon 1.167MB Step 1/11 : FROM python:3 ---> 539eccd5ee4e Step 2/11 : WORKDIR /app ---> Running in c15805a1065e Removing intermediate container c15805a1065e ---> 0ebabd024dd2 Step 3/11 : ARG POETRY_VERSION=1.2.2 ---> Running in 268ca1896016 Removing intermediate container 268ca1896016 ---> f0db231549d6 Step 4/11 : RUN apt-get update && curl -sL https://deb.nodesource.com/setup_16.x | bash - && apt-get install -y nodejs && rm -rf /var/cache/apk/* && pip3 install --no-cache-dir poetry && rm -rf ~/.cache/ ---> Running in 00a64386ad00 Get:1 http://deb.debian.org/debian bullseye InRelease [116 kB] Get:2 http://deb.debian.org/debian-security bullseye-security InRelease [48.4 kB] Get:3 http://deb.debian.org/debian bullseye-updates InRelease [44.1 kB] Get:4 http://deb.debian.org/debian bullseye/main amd64 Packages [8184 kB] Get:5 http://deb.debian.org/debian-security bullseye-security/main amd64 Packages [209 kB] Get:6 http://deb.debian.org/debian bullseye-updates/main amd64 Packages [14.6 kB] Fetched 8615 kB in 4s (1918 kB/s) Reading package lists... ## Installing the NodeSource Node.js 16.x repo... ## Populating apt-get cache... + apt-get update Hit:1 http://deb.debian.org/debian bullseye InRelease Hit:2 http://deb.debian.org/debian-security bullseye-security InRelease Hit:3 http://deb.debian.org/debian bullseye-updates InRelease Reading package lists... ## Installing packages required for setup: lsb-release... + apt-get install -y lsb-release > /dev/null 2>&1 ## Confirming "bullseye" is supported... + curl -sLf -o /dev/null 'https://deb.nodesource.com/node_16.x/dists/bullseye/Release' ## Adding the NodeSource signing key to your keyring... + curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | gpg --dearmor | tee /usr/share/keyrings/nodesource.gpg >/dev/null ## Creating apt sources list file for the NodeSource Node.js 16.x repo... + echo 'deb [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_16.x bullseye main' > /etc/apt/sources.list.d/nodesource.list + echo 'deb-src [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_16.x bullseye main' >> /etc/apt/sources.list.d/nodesource.list ## Running `apt-get update` for you... + apt-get update Hit:1 http://deb.debian.org/debian bullseye InRelease Hit:2 http://deb.debian.org/debian-security bullseye-security InRelease Hit:3 http://deb.debian.org/debian bullseye-updates InRelease Get:4 https://deb.nodesource.com/node_16.x bullseye InRelease [4586 B] Get:5 https://deb.nodesource.com/node_16.x bullseye/main amd64 Packages [774 B] Fetched 5360 B in 1s (3836 B/s) Reading package lists... ## Run `sudo apt-get install -y nodejs` to install Node.js 16.x and npm ## You may also need development tools to build native addons: sudo apt-get install gcc g++ make ## To install the Yarn package manager, run: curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor | sudo tee /usr/share/keyrings/yarnkey.gpg >/dev/null echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" | sudo tee /etc/apt/sources.list.d/yarn.list sudo apt-get update && sudo apt-get install yarn Reading package lists... Building dependency tree... Reading state information... The following NEW packages will be installed: nodejs 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 27.2 MB of archives. After this operation, 128 MB of additional disk space will be used. Get:1 https://deb.nodesource.com/node_16.x bullseye/main amd64 nodejs amd64 16.18.1-deb-1nodesource1 [27.2 MB] debconf: delaying package configuration, since apt-utils is not installed Fetched 27.2 MB in 5s (4993 kB/s) Selecting previously unselected package nodejs. (Reading database ... 23442 files and directories currently installed.) Preparing to unpack .../nodejs_16.18.1-deb-1nodesource1_amd64.deb ... Unpacking nodejs (16.18.1-deb-1nodesource1) ... Setting up nodejs (16.18.1-deb-1nodesource1) ... Collecting poetry Downloading poetry-1.2.2-py3-none-any.whl (212 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 212.4/212.4 kB 820.6 kB/s eta 0:00:00 Collecting cachecontrol[filecache]<0.13.0,>=0.12.9 Downloading CacheControl-0.12.11-py2.py3-none-any.whl (21 kB) Collecting cachy<0.4.0,>=0.3.0 Downloading cachy-0.3.0-py2.py3-none-any.whl (20 kB) Collecting cleo<2.0.0,>=1.0.0a5 Downloading cleo-1.0.0a5-py3-none-any.whl (78 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 78.7/78.7 kB 4.9 MB/s eta 0:00:00 Collecting crashtest<0.4.0,>=0.3.0 Downloading crashtest-0.3.1-py3-none-any.whl (7.0 kB) Collecting dulwich<0.21.0,>=0.20.46 Downloading dulwich-0.20.50-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (501 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 501.7/501.7 kB 4.2 MB/s eta 0:00:00 Collecting html5lib<2.0,>=1.0 Downloading html5lib-1.1-py2.py3-none-any.whl (112 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 112.2/112.2 kB 14.8 MB/s eta 0:00:00 Collecting jsonschema<5.0.0,>=4.10.0 Downloading jsonschema-4.17.3-py3-none-any.whl (90 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 90.4/90.4 kB 16.1 MB/s eta 0:00:00 Collecting keyring>=21.2.0 Downloading keyring-23.11.0-py3-none-any.whl (36 kB) Collecting packaging>=20.4 Downloading packaging-22.0-py3-none-any.whl (42 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 42.6/42.6 kB 32.2 MB/s eta 0:00:00 Collecting pexpect<5.0.0,>=4.7.0 Downloading pexpect-4.8.0-py2.py3-none-any.whl (59 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 59.0/59.0 kB 22.7 MB/s eta 0:00:00 Collecting pkginfo<2.0,>=1.5 Downloading pkginfo-1.9.2-py3-none-any.whl (26 kB) Collecting platformdirs<3.0.0,>=2.5.2 Downloading platformdirs-2.6.0-py3-none-any.whl (14 kB) Collecting poetry-core==1.3.2 Downloading poetry_core-1.3.2-py3-none-any.whl (531 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 531.3/531.3 kB 11.9 MB/s eta 0:00:00 Collecting poetry-plugin-export<2.0.0,>=1.1.2 Downloading poetry_plugin_export-1.2.0-py3-none-any.whl (10 kB) Collecting requests<3.0,>=2.18 Downloading requests-2.28.1-py3-none-any.whl (62 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 62.8/62.8 kB 20.8 MB/s eta 0:00:00 Collecting requests-toolbelt<0.10.0,>=0.9.1 Downloading requests_toolbelt-0.9.1-py2.py3-none-any.whl (54 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 54.3/54.3 kB 29.5 MB/s eta 0:00:00 Collecting shellingham<2.0,>=1.5 Downloading shellingham-1.5.0-py2.py3-none-any.whl (9.3 kB) Collecting tomlkit!=0.11.2,!=0.11.3,<1.0.0,>=0.11.1 Downloading tomlkit-0.11.6-py3-none-any.whl (35 kB) Collecting urllib3<2.0.0,>=1.26.0 Downloading urllib3-1.26.13-py2.py3-none-any.whl (140 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 140.6/140.6 kB 13.6 MB/s eta 0:00:00 Collecting virtualenv!=20.4.5,!=20.4.6,>=20.4.3 Downloading virtualenv-20.17.1-py3-none-any.whl (8.8 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 8.8/8.8 MB 7.0 MB/s eta 0:00:00 Collecting msgpack>=0.5.2 Downloading msgpack-1.0.4.tar.gz (128 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 128.1/128.1 kB 6.8 MB/s eta 0:00:00 Installing build dependencies: started Installing build dependencies: finished with status 'done' Getting requirements to build wheel: started Getting requirements to build wheel: finished with status 'done' Installing backend dependencies: started Installing backend dependencies: finished with status 'done' Preparing metadata (pyproject.toml): started Preparing metadata (pyproject.toml): finished with status 'done' Collecting lockfile>=0.9 Downloading lockfile-0.12.2-py2.py3-none-any.whl (13 kB) Collecting pylev<2.0.0,>=1.3.0 Downloading pylev-1.4.0-py2.py3-none-any.whl (6.1 kB) Collecting six>=1.9 Downloading six-1.16.0-py2.py3-none-any.whl (11 kB) Collecting webencodings Downloading webencodings-0.5.1-py2.py3-none-any.whl (11 kB) Collecting attrs>=17.4.0 Downloading attrs-22.1.0-py2.py3-none-any.whl (58 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 58.8/58.8 kB 10.8 MB/s eta 0:00:00 Collecting pyrsistent!=0.17.0,!=0.17.1,!=0.17.2,>=0.14.0 Downloading pyrsistent-0.19.2-py3-none-any.whl (57 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 57.5/57.5 kB 10.7 MB/s eta 0:00:00 Collecting jaraco.classes Downloading jaraco.classes-3.2.3-py3-none-any.whl (6.0 kB) Collecting importlib-metadata>=4.11.4 Downloading importlib_metadata-5.1.0-py3-none-any.whl (21 kB) Collecting SecretStorage>=3.2 Downloading SecretStorage-3.3.3-py3-none-any.whl (15 kB) Collecting jeepney>=0.4.2 Downloading jeepney-0.8.0-py3-none-any.whl (48 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 48.4/48.4 kB 13.4 MB/s eta 0:00:00 Collecting ptyprocess>=0.5 Downloading ptyprocess-0.7.0-py2.py3-none-any.whl (13 kB) Collecting charset-normalizer<3,>=2 Downloading charset_normalizer-2.1.1-py3-none-any.whl (39 kB) Collecting idna<4,>=2.5 Downloading idna-3.4-py3-none-any.whl (61 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.5/61.5 kB 9.1 MB/s eta 0:00:00 Collecting certifi>=2017.4.17 Downloading certifi-2022.12.7-py3-none-any.whl (155 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 155.3/155.3 kB 5.9 MB/s eta 0:00:00 Collecting distlib<1,>=0.3.6 Downloading distlib-0.3.6-py2.py3-none-any.whl (468 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 468.5/468.5 kB 5.9 MB/s eta 0:00:00 Collecting filelock<4,>=3.4.1 Downloading filelock-3.8.2-py3-none-any.whl (10 kB) Collecting zipp>=0.5 Downloading zipp-3.11.0-py3-none-any.whl (6.6 kB) Collecting cryptography>=2.0 Downloading cryptography-38.0.4-cp36-abi3-manylinux_2_28_x86_64.whl (4.2 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.2/4.2 MB 5.6 MB/s eta 0:00:00 Collecting more-itertools Downloading more_itertools-9.0.0-py3-none-any.whl (52 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 52.8/52.8 kB 13.5 MB/s eta 0:00:00 Collecting cffi>=1.12 Downloading cffi-1.15.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (462 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 462.6/462.6 kB 5.9 MB/s eta 0:00:00 Collecting pycparser Downloading pycparser-2.21-py2.py3-none-any.whl (118 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 118.7/118.7 kB 5.9 MB/s eta 0:00:00 Building wheels for collected packages: msgpack Building wheel for msgpack (pyproject.toml): started Building wheel for msgpack (pyproject.toml): finished with status 'done' Created wheel for msgpack: filename=msgpack-1.0.4-cp311-cp311-linux_x86_64.whl size=324553 sha256=5e0a86ae1331413b30b8e9eca03514acfccd918a76d701ea08f01f0f51cd3721 Stored in directory: /tmp/pip-ephem-wheel-cache-wtpy4rjx/wheels/be/38/62/bffc8d68ee5e3a6a3080b2f8a520e8302fe333528d93a488af Successfully built msgpack Installing collected packages: webencodings, pylev, ptyprocess, msgpack, lockfile, distlib, zipp, urllib3, tomlkit, six, shellingham, pyrsistent, pycparser, poetry-core, platformdirs, pkginfo, pexpect, packaging, more-itertools, jeepney, idna, filelock, crashtest, charset-normalizer, certifi, cachy, attrs, virtualenv, requests, jsonschema, jaraco.classes, importlib-metadata, html5lib, dulwich, cleo, cffi, requests-toolbelt, cryptography, cachecontrol, SecretStorage, keyring, poetry-plugin-export, poetry Successfully installed SecretStorage-3.3.3 attrs-22.1.0 cachecontrol-0.12.11 cachy-0.3.0 certifi-2022.12.7 cffi-1.15.1 charset-normalizer-2.1.1 cleo-1.0.0a5 crashtest-0.3.1 cryptography-38.0.4 distlib-0.3.6 dulwich-0.20.50 filelock-3.8.2 html5lib-1.1 idna-3.4 importlib-metadata-5.1.0 jaraco.classes-3.2.3 jeepney-0.8.0 jsonschema-4.17.3 keyring-23.11.0 lockfile-0.12.2 more-itertools-9.0.0 msgpack-1.0.4 packaging-22.0 pexpect-4.8.0 pkginfo-1.9.2 platformdirs-2.6.0 poetry-1.2.2 poetry-core-1.3.2 poetry-plugin-export-1.2.0 ptyprocess-0.7.0 pycparser-2.21 pylev-1.4.0 pyrsistent-0.19.2 requests-2.28.1 requests-toolbelt-0.9.1 shellingham-1.5.0 six-1.16.0 tomlkit-0.11.6 urllib3-1.26.13 virtualenv-20.17.1 webencodings-0.5.1 zipp-3.11.0 WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv Removing intermediate container 00a64386ad00 ---> 6e9aa24143c4 Step 5/11 : COPY package*.json ./ ---> c82cf49b738c Step 6/11 : COPY pyproject.toml ./ ---> caced05379b6 Step 7/11 : COPY poetry.lock ./ ---> 62086ecac5ad Step 8/11 : ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true ---> Running in f3cde6cddd52 Removing intermediate container f3cde6cddd52 ---> f2960e64a2cf Step 9/11 : RUN poetry install && npm install && rm -rf ~/.npm/ ---> Running in 553d7f471fa4 Creating virtualenv chatbot-twitter-9TtSrW0h-py3.11 in /root/.cache/pypoetry/virtualenvs Installing dependencies from lock file Warning: poetry.lock is not consistent with pyproject.toml. You may be getting improper dependencies. Run `poetry lock [--no-update]` to fix it. Package operations: 17 installs, 0 updates, 0 removals • Installing idna (3.4) • Installing sniffio (1.3.0) • Installing anyio (3.6.2) • Installing certifi (2022.9.24) • Installing h11 (0.14.0) • Installing hpack (4.0.0) • Installing hyperframe (6.0.1) • Installing charset-normalizer (2.1.1) • Installing h2 (4.1.0) • Installing httpcore (0.16.2) • Installing rfc3986 (1.5.0) • Installing tls-client (0.1.5) • Installing urllib3 (1.26.13) • Installing httpx (0.23.1) • Installing openaiauth (0.0.4) • Installing requests (2.28.1) • Installing revchatgpt (0.0.33.5) npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 npm WARN deprecated har-validator@5.1.5: this library is no longer supported npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. added 511 packages, and audited 512 packages in 13s 78 packages are looking for funding run `npm fund` for details 7 high severity vulnerabilities To address all issues (including breaking changes), run: npm audit fix --force Run `npm audit` for details. npm notice npm notice New major version of npm available! 8.19.2 -> 9.2.0 npm notice Changelog: <https://github.com/npm/cli/releases/tag/v9.2.0> npm notice Run `npm install -g npm@9.2.0` to update! npm notice Removing intermediate container 553d7f471fa4 ---> 09fdc5e1a2a7 Step 10/11 : COPY . . ---> 38a277d66480 Step 11/11 : CMD ["npm", "run", "dev"] ---> Running in 1dd6becc5b0d Removing intermediate container 1dd6becc5b0d ---> 5c0ccee230f8 Successfully built 5c0ccee230f8 Successfully tagged wechat-chatgpt:latest xtx@dockershell:~/wechat-chatgpt$ cp config.yaml.example ~/config.yaml xtx@dockershell:~/wechat-chatgpt$ cd .. xtx@dockershell:~$ cat config.yaml chatGPTAccountPool: - email: email password: password session_token: session_token chatPrivateTiggerKeyword: ""xtx@dockershell:~$ nano config.pa xtx@dockershell:~$ nano config.yaml xtx@dockershell:~$ docker run -d --name wechat-chatgpt -v $(pwd)/config.yaml:/app/config.yaml wechat-chatgpt e88aca382debaf80fd9bd341764ee0450d11d1f387d3951f90573e9a522f22a4 xtx@dockershell:~$ docker logs -f wechat-chatgpt > wechat-chatgpt@1.0.0 dev > nodemon --exec node --watch config.yaml --loader ts-node/esm src/main.ts [nodemon] 2.0.20 [nodemon] to restart at any time, enter `rs` [nodemon] watching path(s): config.yaml [nodemon] watching extensions: ts [nodemon] starting `node --loader ts-node/esm src/main.ts` (node:32) ExperimentalWarning: Custom ESM Loaders is an experimental feature. This feature could change at any time (Use `node --trace-warnings ...` to show where the warning was created) Scan QR Code to login: 2 https://wechaty.js.org/qrcode/https%3A%2F%2Flogin.weixin.qq.com%2Fl%2F4ami8vCkWw%3D%3D ▄▄▄▄▄▄▄ ▄ ▄▄ ▄▄ ▄▄ ▄▄▄▄▄▄▄ █ ▄▄▄ █ ▀ ▄ ██▄ ▀▄▄ █ ▄▄▄ █ █ ███ █ ▀▀▄█▀████▀▀▄▀ █ ███ █ █▄▄▄▄▄█ ▄▀█ ▄ ▄ █▀█▀▄ █▄▄▄▄▄█ ▄ ▄▄ ▄▄▄▀███▀▄▄▄ █▄▀ ▄ ▄ ▄▄ ▀█▀▀▄▄▄ █▄▄▄▀▄▀ ▄ ▀▀▄██▀▀ ▄▄▀ ▀▄▄███▄▀▀▄▄ ▀██ ▀▄▀▄▀▄ ▀▄▄ ▀ █▀ ▀▀▀▄ ▀█▄▀ ▄▀▀▄▄█▄▄▀▄▄ ███ ▀ ▄▀▄▄▄█▄▄ ▄▀▄██▀ ▄▄▄█▀██▄ █ ▄ █▀█▄██▄▀▀█ ██▄▀ ▀▀ █ ▀█▀ ▄▄ ▄▄▄ ▀ ▀▀▄ ▄█▀ ███▄█▄█ ▄▄▄▄▄▄▄ ██▀▄█▀▀ ▀▀███ ▄ ██▀█▀ █ ▄▄▄ █ ▀▀ ▄▀▀▀▄▄▄▀ █▄▄▄█▀▄▄▄ █ ███ █ █ ████▀▀ ▄██▀ █▀▀▄ █ █▄▄▄▄▄█ ▄ ▄▄▀▀ ▄▀ ▀▄█▄ █▀ █ ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ Scan QR Code to login: 3 https://wechaty.js.org/qrcode/https%3A%2F%2Flogin.weixin.qq.com%2Fl%2F4ami8vCkWw%3D%3D ▄▄▄▄▄▄▄ ▄ ▄▄ ▄▄ ▄▄ ▄▄▄▄▄▄▄ █ ▄▄▄ █ ▀ ▄ ██▄ ▀▄▄ █ ▄▄▄ █ █ ███ █ ▀▀▄█▀████▀▀▄▀ █ ███ █ █▄▄▄▄▄█ ▄▀█ ▄ ▄ █▀█▀▄ █▄▄▄▄▄█ ▄ ▄▄ ▄▄▄▀███▀▄▄▄ █▄▀ ▄ ▄ ▄▄ ▀█▀▀▄▄▄ █▄▄▄▀▄▀ ▄ ▀▀▄██▀▀ ▄▄▀ ▀▄▄███▄▀▀▄▄ ▀██ ▀▄▀▄▀▄ ▀▄▄ ▀ █▀ ▀▀▀▄ ▀█▄▀ ▄▀▀▄▄█▄▄▀▄▄ ███ ▀ ▄▀▄▄▄█▄▄ ▄▀▄██▀ ▄▄▄█▀██▄ █ ▄ █▀█▄██▄▀▀█ ██▄▀ ▀▀ █ ▀█▀ ▄▄ ▄▄▄ ▀ ▀▀▄ ▄█▀ ███▄█▄█ ▄▄▄▄▄▄▄ ██▀▄█▀▀ ▀▀███ ▄ ██▀█▀ █ ▄▄▄ █ ▀▀ ▄▀▀▀▄▄▄▀ █▄▄▄█▀▄▄▄ █ ███ █ █ ████▀▀ ▄██▀ █▀▀▄ █ █▄▄▄▄▄█ ▄ ▄▄▀▀ ▄▀ ▀▄█▄ █▀ █ ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ error.response.headers['set-cookie'] [ 'wxuin=2175xxxx2051; Domain=wx.qq.com; Path=/; Expires=Sat, 10-Dec-2022 05:00:45 GMT; Secure', 'wxsid=a/14Bka6xxxxF08Bi4; Domain=wx.qq.com; Path=/; Expires=Sat, 10-Dec-2022 05:00:45 GMT; Secure', 'wxloadtime=1670605245; Domain=wx.qq.com; Path=/; Expires=Sat, 10-Dec-2022 05:00:45 GMT; Secure', 'mm_lang=zh-CN; Domain=wx.qq.com; Path=/; Expires=Sat, 10-Dec-2022 05:00:45 GMT; Secure', 'wxuin=2175162051; Domain=.qq.com; Path=/; Expires=Sat, 10-Dec-2022 05:00:45 GMT; Secure', 'webwx_data_ticket=gSc0xxxx4f5mcD57+qRfOkUz; Domain=.qq.com; Path=/; Expires=Sat, 10-Dec-2022 05:00:45 GMT; Secure', 'webwxuvid=eb35eea3b39042521137658b74e64380c39bcaa03ed2d346b8d67034917041cb96c40f5aa6e239a2543bcf4508547af8; Domain=wx.qq.com; Path=/; Expires=Mon, 06-Dec-2032 17:00:45 GMT; Secure', 'webwx_auth_ticket=CIsBEN+xssYKGoABSPAbFrpkYfaaGxPpMmLS/bzUsx6KYsCBOMjB1lUoCLtQBpiOu5ULe4NP88PUbeMFeW+llsEQwF294bEceL7RlFlJUO2Nf/aCtfl0Tf+JE9B3Z5KfDaEYj0EOad/jyegDgjmMTq+Mm1Hd98tY4A7oToGdOGCsXjBRmJzfOHdUNng=; Domain=wx.qq.com; Path=/; Expires=Mon, 06-Dec-2032 17:00:45 GMT; Secure' ] User Contact<xtxChino> logged in Start GPT Bot Config is:{"chatGPTAccountPool":["session_token:eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIn0..IOEPnLR8w2Tfyp6m.M-w4lpoTTa-R-dy6GQzj5MEfYKWyCZ0ksPnHQXd4Pi9NepN_XttRB4HRxm49zzWb-aJq9bNsQmF3fhFtGxBo9sMT-F5z2W1ie348Ucq7p2w8peKXLYrGEWgQ3T3FsPz_f7xngwAjZUgnIF075RXzi6xJRisLzwqkgmVSMC2kDcWKWISYAdtjrBRxYvbGnPF-ps6wCWoTNIJ74gM4tfuOsLSKkqgXkx3nWxRvman1y60PTCYU6B5pipDI5Zg-mWWUZC-OYBOJYrIFHbFRjedKABtaGQe8k_TlcAGTPrikJu0VsRtvXDCMVOuO1lIqcOTKczuavNRX-9rPrrY9FHOmdh-1bha1Rahfor7EF9njw19EcghvsHhnDjj7KYaesR8FSfzdJBarFgfN2C8KfX4qDG7uf4Z6_NtA0By_1450SLQLDStzPpjeJMSIqJztcYZnNIrpSmvgdU-a-Oseb9wO4uiiIdtLqbGKgkEvPPqzsS1GmTyQi1Z1UTSbgBAAnr24bq0W45dYP1nvKTv7zMfC1YhHsX9_tzZ7uBR3yggGEG-6VIO9FEVcUuWdC5Dpjk_FT1HkV9LrcdOxYcgopBynRoX-r8LedTrRB-b6c43N6kAbIRbT3bjd43lPUWZBgXK0q_gGHtdp7-kfvZGEqRo0zuHciB1oTjMHhheEh-cei71j4pCN-JgGdaYoO1_ADZ2oiEIrmbsPoBnurAvv1UpnDT7RFXcWLRsXuSZ8atHti9qnUNp-4mF8S4aAHg5W_KxNVCb-EMqZ-6xj7PnOQrw6U09yB26eGZpz7DSDzUWShALUCuk03NmsexOkIDnpKM31TuIciMYHSvRsQWPu2xxOfQNZtmESmHMLXID-WmuYVPH_0O4liHu4nCDkbHEhhsTpCeBV6Et__yii_biaslYxlXzmzblAStMh4T-SmXo46MxkT06TJQqoi-RHPqEUKoidnh2fJFoJHoKe4Qr66N_NaiQjU_MSlMQKK0ORoHpL7Hqjhl7mowTtaj5h08il4ECo_HLgj_GOQ3eI1NJxRyKL-prvAa5E3D1yG2rfsWDB9nlosSiKadsGgmf17JYEparsChNvyrdTucP6CTv43HV1rkhBN-eVK28x-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxGlWVhdkdoMQxbCep5nXgCmt-er-fwk-wmTxJCgYRsBHpIY3R4EEAhZd9xQS3Y2q6j_9_-efumph3V7WPItBX4dK85ahJI35ZPxuom_KouPyKGvn2Pxbi8Meh_RWWQeScEX_yKv06X2LMSCdGsmADiQOKj4TOkvgFmZBw6cdiMEiItz9rXfzbGObI5O.SGdmOtxfJuOJPvYL8MqPfQ"],"chatGptRetryTimes":3,"chatPrivateTiggerKeyword":""} uncaughtException Error: ⚠️ No chatgpt account in pool at ChatGPTPoole.startPools (file:///app/src/chatgpt.ts:159:13) at processTicksAndRejections (node:internal/process/task_queues:96:5) at async ChatGPTBot.startGPTBot (file:///app/src/chatgpt.ts:233:5) at async WechatyImpl.<anonymous> (file:///app/src/main.ts:23:7) Message: Message#Unknown[🗣Contact<xtxChino>] Message: Message#Text[🗣Contact<昕日初升>] 你是谁 🎯 Triggered ChatGPT: 你是谁 Error: ⚠️ No chatgpt item in pool at ChatGPTPoole.getConversation (file:///app/src/chatgpt.ts:176:13) at ChatGPTPoole.sendMessage (file:///app/src/chatgpt.ts:188:35) at ChatGPTBot.getGPTMessage (file:///app/src/chatgpt.ts:253:35) at ChatGPTBot.onPrivateMessage (file:///app/src/chatgpt.ts:308:35) at ChatGPTBot.onMessage (file:///app/src/chatgpt.ts:334:27) at WechatyImpl.<anonymous> (file:///app/src/main.ts:32:26) at WechatyImpl.emit (node:events:513:28) at WechatyImpl.emit (node:domain:489:12) at WechatyImpl.emit (file:///app/node_modules/wechaty/src/wechaty-mixins/gerror-mixin.ts:44:22) at PuppetWechat4u.<anonymous> (file:///app/node_modules/wechaty/src/wechaty-mixins/puppet-mixin.ts:281:22)
如果以上方式无法解决该报错就需要更换程序版本了,回退到之前的程序版本,可以解决该问题。拉取以下版本的docker镜像:docker pull holegots/wechat-chatgpt:0.0.2-alpha 可以规避该问题。
至此,完成centos8下搭建chatgpt本地环境集成到微信中,接入个人微信操作过程报错故障处理的所有操作流程。
评论前必须登录!
注册