Giter VIP home page Giter VIP logo

Failed to perform, ErrCode: 23, Reason: 'Failure writing output to destination'. This may be a libcurl error, See https://curl.se/libcurl/c/libcurl-errors.html first for more details. about claude2-pyapi HOT 11 OPEN

wwwzhouhui avatar wwwzhouhui commented on September 1, 2024
Failed to perform, ErrCode: 23, Reason: 'Failure writing output to destination'. This may be a libcurl error, See https://curl.se/libcurl/c/libcurl-errors.html first for more details.

from claude2-pyapi.

Comments (11)

2922832737C avatar 2922832737C commented on September 1, 2024

我也遇到这个问题了,请问你解决了吗

from claude2-pyapi.

Gyxqq avatar Gyxqq commented on September 1, 2024

from claude2-pyapi.

Mou-Mou-L avatar Mou-Mou-L commented on September 1, 2024

我也遇到这个问题了,请问你解决了吗

raise RequestsError(str(e), e.code, rsp) from e
curl_cffi.requests.errors.RequestsError: Failed to perform, ErrCode: 7, Reason: 'Failed to connect to 127.0.0.1 port 10808 after 2031 ms: Connection refused'. This may be a libcurl error, See https://curl.se/libcurl/c/libcurl-errors.html first for more details.
遇到了以上错误 不知道一样不

from claude2-pyapi.

2922832737C avatar 2922832737C commented on September 1, 2024

@Mou-Mou-L 你的好像是代理的问题

from claude2-pyapi.

Mou-Mou-L avatar Mou-Mou-L commented on September 1, 2024

@2922832737C 大佬 我用的clash代理 可以帮我指点一下么

from claude2-pyapi.

Mou-Mou-L avatar Mou-Mou-L commented on September 1, 2024

@2922832737C 大佬 我用的clash代理 可以帮我指点一下么

@2922832737C 大佬 我用的clash代理 可以帮我指点一下么

qq 1241329431

from claude2-pyapi.

Mou-Mou-L avatar Mou-Mou-L commented on September 1, 2024

@2922832737C 在帮忙看个问题吧 大佬
send 和chat模式 我都按照原始导入的post请求参数执行的 现在程序报如下错误:
self._headers = lib.curl_slist_append(self._headers, header)
TypeError: initializer for ctype 'char *' must be a bytes or list or tuple, not str

from claude2-pyapi.

caicaicaibeiqie avatar caicaicaibeiqie commented on September 1, 2024

@Mou-Mou-L 我也遇到了一样的问题。在使用tracebak打印调用处。

from claude2-pyapi.

Gyxqq avatar Gyxqq commented on September 1, 2024

from claude2-pyapi.

caicaicaibeiqie avatar caicaicaibeiqie commented on September 1, 2024

@Mou-Mou-L 其中获取conversation_id使用的是send_requests方式请求,调用的_set_curl_options有转码的逻辑,遗憾的是我暂时还没找到这个模块。
而send_message直接使用curl的setopt时就会报编码错误。我尝试在curl中对headers判断并转码,结果依然报错。目前还在debug中,如果有新的进展可以一起讨论分享

from claude2-pyapi.

caicaicaibeiqie avatar caicaicaibeiqie commented on September 1, 2024

c.perform()写入失败错误,可能的原因如下:
1、文件/文件夹权限问题,检查待写入的目标文件是否有访问权限,如果使用的是buffer,则忽略这一步。
2、cache溢出导致的buffer无法写入,检查项目资源状态,必要时在每次使用完buffer后调用buffer.seek(0)
buffer.truncate(0)来主动清理。
3、由于claude采用的是流式返回,当处理一些较为复杂,返回token较多的问题所需时间可能比较长,如果你已经将项目部署或者在config中配置了最长等待时间,这个返回过程就会因超时而被中断。建议检查下flask的conf配置以及你所部署服务器的nginx超时配置,如果以上方法都无法解决,期待进一步的探讨

from claude2-pyapi.

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.