Comments (7)
重新拉一下镜像
from gptbing.
加了referer校验,curl -X POST 'http://127.0.0.1:8000/bing/chat' -H 'content-type: application/json' -H 'Referer: servicewechat.com/wxee7496be5b68b740' --data '{"q":"你是谁?","t":1,"sid":"1"}'
from gptbing.
我这个也是同样的错误,都配置了,服务器是国外的,没设置代理
外面提示这个500的错误
{"description":"Internal Server Error","status":500,"message":"The application encountered an unexpected error and could not continue."}
from gptbing.
宿主机器已经开启redis了,不知道在这个docker里面为啥连不上,不能是127.0.0.1吗?
redis.exceptions.ConnectionError: Error 111 connecting to 127.0.0.1:6379. Connection refused.
from gptbing.
开放外网访问redis了,但是有一个这个报错
[2023-06-27 16:53:09 +0000] [1] [INFO] Sanic v23.3.0
[2023-06-27 16:53:09 +0000] [1] [INFO] Goin' Fast @ http://0.0.0.0:8000
[2023-06-27 16:53:09 +0000] [1] [INFO] mode: production, single worker
[2023-06-27 16:53:09 +0000] [1] [INFO] server: sanic, HTTP/1.1
[2023-06-27 16:53:09 +0000] [1] [INFO] python: 3.11.2
[2023-06-27 16:53:09 +0000] [1] [INFO] platform: Linux-5.15.0-1030-oracle-x86_64-with
[2023-06-27 16:53:09 +0000] [1] [INFO] packages: sanic-routing==22.8.0
[2023-06-27 16:53:11 +0000] [15] [INFO] Starting worker [15]
2023-06-27 16:53:57,826 /sanic/app.py [line:347] INFO: [bing] Http request payload: {'q': '你是谁?', 't': 1, 'sid': '1'}
[2023-06-27 16:53:57 +0000] [15] [ERROR] Exception occurred while handling uri: 'http://127.0.0.1:8000/bing/chat'
Traceback (most recent call last):
File "handle_request", line 97, in handle_request
from sanic_ext.extensions.base import Extension # type: ignore
^^^^^^^^^^^^^^
File "/sanic/app.py", line 427, in chat
res = await do_chat(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/sanic/app.py", line 349, in do_chat
return await get_bot(request.json.get('sid')).ask(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/sanic/app.py", line 118, in get_bot
cookie_path = cookie_path or get_cookie_file(sid, COOKIE_FILES)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/sanic/app.py", line 104, in get_cookie_file
return cookie_files[(
^
ZeroDivisionError: integer modulo by zero
配置文件指向json啊,应该是对的
COOKIE_FILES=["/sanic/cookies/cookie0.json"]
from gptbing.
重新拉一下镜像
谢谢大佬,问题都解决了,也跑起来了,但是还有一个问题,为啥会返回很多无关的数据啊,这个能去除吗?
from gptbing.
镜像怎么拉取?
from gptbing.
Related Issues (5)
- 请问下能出个具体的教程嘛? HOT 1
- 大佬你好,很喜欢你这个源码,我是个小白,要是有个简单的教程就好了,谢谢啦 HOT 2
- 大佬请问下现在这种小程序部署到微信会被封·吗 HOT 10
- 尝试了很多遍还是没成功 HOT 7
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 gptbing.