Giter Site home page Giter Site logo

Comments (7)

GitHubChrisChen8035 avatar GitHubChrisChen8035 commented on July 19, 2024

补充一下chatgpt-web项目的log

FetchError: request to http://172.17.0.1:3012/chatgpt/conversation failed, reason: socket hang up
at ClientRequest. (file:///app/node_modules/.pnpm/[email protected]/node_modules/node-fetch/src/index.js:108:11)
at ClientRequest.emit (node:events:525:35)
at Socket.socketOnEnd (node:_http_client:526:9)
at Socket.emit (node:events:525:35)
at endReadableNT (node:internal/streams/readable:1359:12)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
type: 'system',
errno: 'ECONNRESET',
code: 'ECONNRESET',
erroredSysCall: undefined
}

from go-chatgpt-api.

linweiyuan avatar linweiyuan commented on July 19, 2024

如果是同一个 compose 文件,建议用服务名代替 IP(不是错误只是建议)

错误在于端口 3012:3012,改为 3012:8080 即可

from go-chatgpt-api.

GitHubChrisChen8035 avatar GitHubChrisChen8035 commented on July 19, 2024

如果是同一个 compose 文件,建议用服务名代替 IP(不是错误只是建议)

错误在于端口 3012:3012,改为 3012:8080 即可

修改为8080,已经正常,这个port映射,是指将宿主机的3012端口和容器自身的8080端口进行绑定,对吧?
然后http://172.17.0.1:3012/chatgpt/conversation,这里的172.17.0.1是容器间通信的网关,加上3012这个已经映射过的端口,实际指向的是容器IP:8080,也就是go-chatgpt-api这个容器,我这样理解是否正确?

from go-chatgpt-api.

GitHubChrisChen8035 avatar GitHubChrisChen8035 commented on July 19, 2024

如果是同一个 compose 文件,建议用服务名代替 IP(不是错误只是建议)

错误在于端口 3012:3012,改为 3012:8080 即可

修改成服务名称后,会提示connect ECONNREFUSED 172.18.0.2:3012(这个IP很奇怪)
FetchError: request to http://go-chatgpt-api:3012/chatgpt/conversation failed, reason: connect ECONNREFUSED 172.18.0.2:3012
at ClientRequest. (file:///app/node_modules/.pnpm/[email protected]/node_modules/node-fetch/src/index.js:108:11)
at ClientRequest.emit (node:events:525:35)
at Socket.socketErrorListener (node:_http_client:502:9)
at Socket.emit (node:events:513:28)
at emitErrorNT (node:internal/streams/destroy:151:8)
at emitErrorCloseNT (node:internal/streams/destroy:116:3)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
type: 'system',
errno: 'ECONNREFUSED',
code: 'ECONNREFUSED',
erroredSysCall: 'connect'
}

from go-chatgpt-api.

linweiyuan avatar linweiyuan commented on July 19, 2024

理解正确

服务名的话要 8080,并且可以注释掉 ports 配置,不暴露端口出去,不占用主机端口

from go-chatgpt-api.

GitHubChrisChen8035 avatar GitHubChrisChen8035 commented on July 19, 2024

理解正确

服务名的话要 8080,并且可以注释掉 ports 配置,不暴露端口出去,不占用主机端口

感谢耐心解答,最后一个小问题,您的镜像更新频率高吗?是否要使用您推荐的自动更新镜像的配置?

from go-chatgpt-api.

linweiyuan avatar linweiyuan commented on July 19, 2024

之前每天更新,现在基本不更新了,可以不用

from go-chatgpt-api.

Related Issues (20)

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.