Git Product home page Git Product logo

Comments (7)

bujnlc8 avatar bujnlc8 commented on June 9, 2024 1

重新拉一下镜像

from gptbing.

bujnlc8 avatar bujnlc8 commented on June 9, 2024

加了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.

Code365Yes avatar Code365Yes commented on June 9, 2024

我这个也是同样的错误,都配置了,服务器是国外的,没设置代理

外面提示这个500的错误
{"description":"Internal Server Error","status":500,"message":"The application encountered an unexpected error and could not continue."}

容器内是这个错误
iShot_2023-06-27_23.24.09.png

from gptbing.

Code365Yes avatar Code365Yes commented on June 9, 2024

宿主机器已经开启redis了,不知道在这个docker里面为啥连不上,不能是127.0.0.1吗?
redis.exceptions.ConnectionError: Error 111 connecting to 127.0.0.1:6379. Connection refused.

from gptbing.

Code365Yes avatar Code365Yes commented on June 9, 2024

开放外网访问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.

Code365Yes avatar Code365Yes commented on June 9, 2024

重新拉一下镜像

谢谢大佬,问题都解决了,也跑起来了,但是还有一个问题,为啥会返回很多无关的数据啊,这个能去除吗?

image.png

from gptbing.

lw1290537863 avatar lw1290537863 commented on June 9, 2024

镜像怎么拉取?

from gptbing.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.