Comments (13)
国外鸡测试正常,贴上你的日志看看
from chatgpt-html.
我也是国外鸡
File "/home/appuser/.local/lib/python3.11/site-packages/gunicorn/workers/base.py", line 134, in init_process
self.load_wsgi()
File "/home/appuser/.local/lib/python3.11/site-packages/gunicorn/workers/base.py", line 146, in load_wsgi
self.wsgi = self.app.wsgi()
^^^^^^^^^^^^^^^
File "/home/appuser/.local/lib/python3.11/site-packages/gunicorn/app/base.py", line 67, in wsgi
self.callable = self.load()
^^^^^^^^^^^
File "/home/appuser/.local/lib/python3.11/site-packages/gunicorn/app/wsgiapp.py", line 58, in load
return self.load_wsgiapp()
^^^^^^^^^^^^^^^^^^^
File "/home/appuser/.local/lib/python3.11/site-packages/gunicorn/app/wsgiapp.py", line 48, in load_wsgiapp
return util.import_app(self.app_uri)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/appuser/.local/lib/python3.11/site-packages/gunicorn/util.py", line 359, in import_app
mod = importlib.import_module(module)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1206, in _gcd_import
File "", line 1178, in _find_and_load
File "", line 1149, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "", line 940, in exec_module
File "", line 241, in _call_with_frames_removed
File "/chatgpt-html/main.py", line 8, in
with open("config.json", "r") as f: config = json.load(f)
^^^^^^^^^^^^
File "/usr/lib/python3.11/json/init.py", line 293, in load
return loads(fp.read(),
^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/json/init.py", line 346, in loads
return _default_decoder.decode(s)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/json/decoder.py", line 353, in raw_decode
obj, end = self.scan_once(s, idx)
^^^^^^^^^^^^^^^^^^^^^^
json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: line 2 column 9 (char 10)
[2023-03-07 12:51:16 +0000] [8] [INFO] Worker exiting (pid: 8)
[2023-03-07 12:51:16 +0000] [1] [INFO] Shutting down: Master
[2023-03-07 12:51:16 +0000] [1] [INFO] Reason: Worker failed to boot.
[2023-03-07 12:51:30 +0000] [1] [INFO] Starting gunicorn 20.1.0
[2023-03-07 12:51:30 +0000] [1] [INFO] Listening at: http://0.0.0.0:8088 (1)
[2023-03-07 12:51:30 +0000] [1] [INFO] Using worker: gevent
[2023-03-07 12:51:30 +0000] [7] [INFO] Booting worker with pid: 7
[2023-03-07 12:51:30 +0000] [7] [ERROR] Exception in worker process
Traceback (most recent call last):
File "/home/appuser/.local/lib/python3.11/site-packages/gunicorn/arbiter.py", line 589, in spawn_worker
worker.init_process()
File "/home/appuser/.local/lib/python3.11/site-packages/gunicorn/workers/ggevent.py", line 146, in init_process
super().init_process()
File "/home/appuser/.local/lib/python3.11/site-packages/gunicorn/workers/base.py", line 134, in init_process
self.load_wsgi()
File "/home/appuser/.local/lib/python3.11/site-packages/gunicorn/workers/base.py", line 146, in load_wsgi
self.wsgi = self.app.wsgi()
^^^^^^^^^^^^^^^
File "/home/appuser/.local/lib/python3.11/site-packages/gunicorn/app/base.py", line 67, in wsgi
self.callable = self.load()
^^^^^^^^^^^
File "/home/appuser/.local/lib/python3.11/site-packages/gunicorn/app/wsgiapp.py", line 58, in load
return self.load_wsgiapp()
^^^^^^^^^^^^^^^^^^^
File "/home/appuser/.local/lib/python3.11/site-packages/gunicorn/app/wsgiapp.py", line 48, in load_wsgiapp
return util.import_app(self.app_uri)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/appuser/.local/lib/python3.11/site-packages/gunicorn/util.py", line 359, in import_app
mod = importlib.import_module(module)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1206, in _gcd_import
File "", line 1178, in _find_and_load
File "", line 1149, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "", line 940, in exec_module
File "", line 241, in _call_with_frames_removed
File "/chatgpt-html/main.py", line 8, in
with open("config.json", "r") as f: config = json.load(f)
^^^^^^^^^^^^
File "/usr/lib/python3.11/json/init.py", line 293, in load
return loads(fp.read(),
^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/json/init.py", line 346, in loads
return _default_decoder.decode(s)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/json/decoder.py", line 353, in raw_decode
obj, end = self.scan_once(s, idx)
^^^^^^^^^^^^^^^^^^^^^^
json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: line 2 column 9 (char 10)
[2023-03-07 12:51:30 +0000] [7] [INFO] Worker exiting (pid: 7)
[2023-03-07 12:51:30 +0000] [1] [INFO] Shutting down: Master
[2023-03-07 12:51:30 +0000] [1] [INFO] Reason: Worker failed to boot.
from chatgpt-html.
Expecting property name enclosed in double quotes: line 2 column 9 (char 10)
看看是不是config.json填写问题
from chatgpt-html.
{
//邮箱、session_token和access_token三选一,不用的注释或删掉,注意最后一行删掉逗号
//邮箱认证
"email": "********@gmail.com",
"password": "**********"
//session_token认证
//"session_token": "..."
//access_token认证
//"access_token": "<access_token>"
//以下为选填字段
//通过代理连接代理端(作者服务器被墙过,代理好像只能用无密码认证的socks5或者http,请自行测试)
//# "proxy": "..."
//使用付费openai账号(官方称速度更快,无频率限制)
//# "paid": true
}
from chatgpt-html.
确实是config.json的问题
我用//注释 会报错,把其余的删除就好了
感谢指导!
from chatgpt-html.
不客气,更新了一版config.json,应该可以避免此类问题了
from chatgpt-html.
请问一下,新版本config.json 如何注释不需要的行?
from chatgpt-html.
请问一下,新版本config.json 如何注释不需要的行?
应该只需要填有用到的字段就行了,其他都不用改动(刚测试了,没问题)
没用到的也可以全部删掉,不需要注释
from chatgpt-html.
更新到3-14版本后:
out = func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/home/appuser/.local/lib/python3.11/site-packages/revChatGPT/V1.py", line 401, in __login
auth.begin()
File "/home/appuser/.local/lib/python3.11/site-packages/OpenAIAuth.py", line 76, in begin
self.__part_one(token=csrf_token)
File "/home/appuser/.local/lib/python3.11/site-packages/OpenAIAuth.py", line 117, in __part_one
self.__part_two(url=url)
File "/home/appuser/.local/lib/python3.11/site-packages/OpenAIAuth.py", line 146, in __part_two
self.__part_three(state=state)
File "/home/appuser/.local/lib/python3.11/site-packages/OpenAIAuth.py", line 170, in __part_three
self.__part_four(state=state)
File "/home/appuser/.local/lib/python3.11/site-packages/OpenAIAuth.py", line 208, in __part_four
self.__part_five(state=state)
File "/home/appuser/.local/lib/python3.11/site-packages/OpenAIAuth.py", line 245, in __part_five
self.__part_six(old_state=state, new_state=new_state)
File "/home/appuser/.local/lib/python3.11/site-packages/OpenAIAuth.py", line 271, in __part_six
self.__part_seven(redirect_url=redirect_url, previous_url=url)
File "/home/appuser/.local/lib/python3.11/site-packages/OpenAIAuth.py", line 300, in __part_seven
raise Error(
OpenAIAuth.Error
[2023-03-15 08:08:29 +0000] [7] [INFO] Worker exiting (pid: 7)
[2023-03-15 08:08:29 +0000] [1] [INFO] Shutting down: Master
[2023-03-15 08:08:29 +0000] [1] [INFO] Reason: Worker failed to boot.
[2023-03-15 08:08:55 +0000] [1] [INFO] Starting gunicorn 20.1.0
[2023-03-15 08:08:55 +0000] [1] [INFO] Listening at: http://0.0.0.0:8088 (1)
[2023-03-15 08:08:55 +0000] [1] [INFO] Using worker: gevent
[2023-03-15 08:08:55 +0000] [7] [INFO] Booting worker with pid: 7
[2023-03-15 08:08:58 +0000] [7] [ERROR] Exception in worker process
Traceback (most recent call last):
File "/home/appuser/.local/lib/python3.11/site-packages/gunicorn/arbiter.py", line 589, in spawn_worker
worker.init_process()
File "/home/appuser/.local/lib/python3.11/site-packages/gunicorn/workers/ggevent.py", line 146, in init_process
super().init_process()
File "/home/appuser/.local/lib/python3.11/site-packages/gunicorn/workers/base.py", line 134, in init_process
self.load_wsgi()
File "/home/appuser/.local/lib/python3.11/site-packages/gunicorn/workers/base.py", line 146, in load_wsgi
self.wsgi = self.app.wsgi()
^^^^^^^^^^^^^^^
File "/home/appuser/.local/lib/python3.11/site-packages/gunicorn/app/base.py", line 67, in wsgi
self.callable = self.load()
^^^^^^^^^^^
File "/home/appuser/.local/lib/python3.11/site-packages/gunicorn/app/wsgiapp.py", line 58, in load
return self.load_wsgiapp()
^^^^^^^^^^^^^^^^^^^
File "/home/appuser/.local/lib/python3.11/site-packages/gunicorn/app/wsgiapp.py", line 48, in load_wsgiapp
return util.import_app(self.app_uri)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/appuser/.local/lib/python3.11/site-packages/gunicorn/util.py", line 359, in import_app
mod = importlib.import_module(module)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1206, in _gcd_import
File "", line 1178, in _find_and_load
File "", line 1149, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "", line 940, in exec_module
File "", line 241, in _call_with_frames_removed
File "/chatgpt-html/main.py", line 11, in
chatbot = Chatbot(config)
^^^^^^^^^^^^^^^
File "/home/appuser/.local/lib/python3.11/site-packages/revChatGPT/V1.py", line 58, in wrapper
out = func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/home/appuser/.local/lib/python3.11/site-packages/revChatGPT/V1.py", line 233, in init
self.__check_credentials()
File "/home/appuser/.local/lib/python3.11/site-packages/revChatGPT/V1.py", line 58, in wrapper
out = func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/home/appuser/.local/lib/python3.11/site-packages/revChatGPT/V1.py", line 258, in __check_credentials
raise error
File "/home/appuser/.local/lib/python3.11/site-packages/revChatGPT/V1.py", line 256, in __check_credentials
self.__login()
File "/home/appuser/.local/lib/python3.11/site-packages/revChatGPT/V1.py", line 58, in wrapper
out = func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/home/appuser/.local/lib/python3.11/site-packages/revChatGPT/V1.py", line 401, in __login
auth.begin()
File "/home/appuser/.local/lib/python3.11/site-packages/OpenAIAuth.py", line 76, in begin
self.__part_one(token=csrf_token)
File "/home/appuser/.local/lib/python3.11/site-packages/OpenAIAuth.py", line 117, in __part_one
self.__part_two(url=url)
File "/home/appuser/.local/lib/python3.11/site-packages/OpenAIAuth.py", line 146, in __part_two
self.__part_three(state=state)
File "/home/appuser/.local/lib/python3.11/site-packages/OpenAIAuth.py", line 170, in __part_three
self.__part_four(state=state)
File "/home/appuser/.local/lib/python3.11/site-packages/OpenAIAuth.py", line 208, in __part_four
self.__part_five(state=state)
File "/home/appuser/.local/lib/python3.11/site-packages/OpenAIAuth.py", line 245, in __part_five
self.__part_six(old_state=state, new_state=new_state)
File "/home/appuser/.local/lib/python3.11/site-packages/OpenAIAuth.py", line 271, in __part_six
self.__part_seven(redirect_url=redirect_url, previous_url=url)
File "/home/appuser/.local/lib/python3.11/site-packages/OpenAIAuth.py", line 300, in __part_seven
raise Error(
OpenAIAuth.Error
[2023-03-15 08:08:58 +0000] [7] [INFO] Worker exiting (pid: 7)
[2023-03-15 08:08:58 +0000] [1] [INFO] Shutting down: Master
[2023-03-15 08:08:58 +0000] [1] [INFO] Reason: Worker failed to boot.
其他配置啥的都没有变,不知哪里报错了?
from chatgpt-html.
感觉应该是账号,登陆失败。
from chatgpt-html.
今天开始有大批账号被封,确切原因暂未明了,但作者认为基本是因为用了V1,建议暂时先不要使用我的项目
from chatgpt-html.
有点迷糊,用这个项目,昨天开始变成了deactivated, 但是我去登录官网的网页版,却说:ChatGPT is at capacity right now
from chatgpt-html.
用了这个项目,近几天我的账户,被停用了
from chatgpt-html.
Related Issues (20)
- 已解决
- macos 操作执行不成功 HOT 3
- 建议改进2个地方 HOT 3
- 404 (Not Found) HOT 2
- 网页无响应 HOT 4
- 就一个微软账号怎么办 HOT 1
- 服务器500 HOT 1
- OpenAIAuth.Error HOT 2
- 完整的api封装请参考这个项目 HOT 3
- 能否问问,需要多少安装空间? HOT 2
- worker fail to boot HOT 2
- HTTPSConnectionPool(host='chatgpt.duti.tech', port=443): Max retries exceeded with url: /api/conversation (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fe837958150>: Failed to establish a new connection: [Errno -5] No address associated with hostname')) HOT 6
- The Compose file './docker-compose.yml' is invalid because: Unsupported config option for services: 'chatgpt' HOT 2
- can't start new thread HOT 3
- pandoraAI测试站,好像必须扶梯? HOT 2
- 找不到config.json? HOT 1
- Is this test site unusable? Why didn't I respond to my conversation with him? How should I solve it? HOT 1
- 连续对话时,滚动条不会自动下拉 HOT 4
- CHATGPT_BASE_URL是什么 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 chatgpt-html.