Git Product home page Git Product logo

Comments (16)

whyiyhw avatar whyiyhw commented on August 16, 2024

不好意思,昨天新加的功能忘记设置可选了🧎,你拉下最新的代码。

panic: illegal base64 data at input byte 44 , 这个就很明显了, 检查下 你的 Token 跟 EncodingAESKey

from chatgpt-wechat.

tee09 avatar tee09 commented on August 16, 2024

不好意思,昨天新加的功能忘记设置可选了🧎,你拉下最新的代码。

panic: illegal base64 data at input byte 44 , 这个就很明显了, 检查下 你的 Token 跟 EncodingAESKey

👌 搞定了

from chatgpt-wechat.

tee09 avatar tee09 commented on August 16, 2024

openai回调地址请求不通过。端口是可以访问到的,服务器也已经设置好代理可以出去。还有那些那些可能性会导致这个问题?

from chatgpt-wechat.

whyiyhw avatar whyiyhw commented on August 16, 2024

企微回调认证未通过,企微服务器 --> host:ip
这一步错误 90% 的都是自己改了 8887 端口映射 ,然后配置错了,另外的就是服务器网络安全策略没开放端口
其他的就是 Token 跟 EncodingAESKey 填错了

from chatgpt-wechat.

tee09 avatar tee09 commented on August 16, 2024

企微回调认证未通过,企微服务器 --> host:ip 这一步错误 90% 的都是自己改了 8887 端口映射 ,然后配置错了,另外的就是服务器网络安全策略没开放端口 其他的就是 Token 跟 EncodingAESKey 填错了

再三确认过了,策略都是开的,端口也可以打开。测试过了服务器端没有抓到包,应该是这个段IP被注册过了,直接没有发请求出来。

from chatgpt-wechat.

whyiyhw avatar whyiyhw commented on August 16, 2024

如果请求没发出来,那可能是ip被ban了,那可以试试云函数+cname 的方式绕过去,转发到服务器

from chatgpt-wechat.

tee09 avatar tee09 commented on August 16, 2024

换了一个企业微信,设置了可信,现在提示回调URL校验失败,在服务器上抓包发现HTTP请求的时候只是GET /没有带请求。服务器回的400 bad request。

from chatgpt-wechat.

whyiyhw avatar whyiyhw commented on August 16, 2024

企业微信 验证过来的 请求,都是 get 类型的请求 具体逻辑可以看这段js, 其他语言类似
image
还是 那个问题 8887 端口 ,修改配置文件后是否 (build and up / restart web )?

from chatgpt-wechat.

tee09 avatar tee09 commented on August 16, 2024

如果请求没发出来,那可能是ip被ban了,那可以试试云函数+cname 的方式绕过去,转发到服务器

验证通过了,但是没有回消息,我怎么验证我的服务器可以调通openai呢?

from chatgpt-wechat.

whyiyhw avatar whyiyhw commented on August 16, 2024

直接 curl 看看能请求到 openai,如果能
就看 docker-compose logs web 有没有响应信息

from chatgpt-wechat.

tee09 avatar tee09 commented on August 16, 2024

直接 curl 看看能请求到 openai,如果能 就看 docker-compose logs web 有没有响应信息

{"@timestamp":"2023-04-28T00:14:26.610+08:00","caller":"openai/chat.go:21","content":"req: [{system 你是ChatGPT,一个由OpenAI训练的大型语言模型,你旨在回答并解决人们的任何问题,并且可以使用多种语言与人交流。} {user 在?}]","level":"info"}
req chat stream params:
{"@timestamp":"2023-04-28T00:14:56.993+08:00","caller":"wecom/wecom.go:104","content":"应用消息-发送失败 err:WorkwxClientError { Code: 41001, Msg: "access_token missing, hint: [1682612096431493020459354], from ip: x.x.x.x, more info at https://open.work.weixin.qq.com/devtool/query?e=41001\" }","level":"error"}

from chatgpt-wechat.

whyiyhw avatar whyiyhw commented on August 16, 2024

access_token 生成错误,你检查下
CorpID: "wwxxxxxxxxxxxxxxxxxxxx" # 企业微信 CorpID
DefaultAgentSecret: "55sO-xxxxxxxxxxxxxxxxxx" # 企业微信应用 Secret
这两个参数是否设置正常,还有改完记得 restart web

from chatgpt-wechat.

tee09 avatar tee09 commented on August 16, 2024

access_token 生成错误,你检查下 CorpID: "wwxxxxxxxxxxxxxxxxxxxx" # 企业微信 CorpID DefaultAgentSecret: "55sO-xxxxxxxxxxxxxxxxxx" # 企业微信应用 Secret 这两个参数是否设置正常,还有改完记得 restart web

已经解决了,还是网络问题,全局代理把请求不知道丢哪里去了。

from chatgpt-wechat.

whyiyhw avatar whyiyhw commented on August 16, 2024

用了感觉还不错的话,可以考虑给个 🌟

from chatgpt-wechat.

tee09 avatar tee09 commented on August 16, 2024

用了感觉还不错的话,可以考虑给个 🌟

必须的,已经小范围推广给其他朋友了。

from chatgpt-wechat.

whyiyhw avatar whyiyhw commented on August 16, 2024

十分感谢🙏 😊

from chatgpt-wechat.

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.