Comments (16)
不好意思,昨天新加的功能忘记设置可选了🧎,你拉下最新的代码。
panic: illegal base64 data at input byte 44
, 这个就很明显了, 检查下 你的 Token 跟 EncodingAESKey
from chatgpt-wechat.
不好意思,昨天新加的功能忘记设置可选了🧎,你拉下最新的代码。
panic: illegal base64 data at input byte 44
, 这个就很明显了, 检查下 你的 Token 跟 EncodingAESKey
👌 搞定了
from chatgpt-wechat.
openai回调地址请求不通过。端口是可以访问到的,服务器也已经设置好代理可以出去。还有那些那些可能性会导致这个问题?
from chatgpt-wechat.
企微回调认证未通过,企微服务器 --> host:ip
这一步错误 90% 的都是自己改了 8887 端口映射 ,然后配置错了,另外的就是服务器网络安全策略没开放端口
其他的就是 Token 跟 EncodingAESKey 填错了
from chatgpt-wechat.
企微回调认证未通过,企微服务器 --> host:ip 这一步错误 90% 的都是自己改了 8887 端口映射 ,然后配置错了,另外的就是服务器网络安全策略没开放端口 其他的就是 Token 跟 EncodingAESKey 填错了
再三确认过了,策略都是开的,端口也可以打开。测试过了服务器端没有抓到包,应该是这个段IP被注册过了,直接没有发请求出来。
from chatgpt-wechat.
如果请求没发出来,那可能是ip被ban了,那可以试试云函数+cname 的方式绕过去,转发到服务器
from chatgpt-wechat.
换了一个企业微信,设置了可信,现在提示回调URL校验失败,在服务器上抓包发现HTTP请求的时候只是GET /没有带请求。服务器回的400 bad request。
from chatgpt-wechat.
企业微信 验证过来的 请求,都是 get 类型的请求 具体逻辑可以看这段js, 其他语言类似
还是 那个问题 8887 端口 ,修改配置文件后是否 (build and up / restart web )?
from chatgpt-wechat.
如果请求没发出来,那可能是ip被ban了,那可以试试云函数+cname 的方式绕过去,转发到服务器
验证通过了,但是没有回消息,我怎么验证我的服务器可以调通openai呢?
from chatgpt-wechat.
直接 curl 看看能请求到 openai,如果能
就看 docker-compose logs web 有没有响应信息
from chatgpt-wechat.
直接 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.
access_token 生成错误,你检查下
CorpID: "wwxxxxxxxxxxxxxxxxxxxx" # 企业微信 CorpID
DefaultAgentSecret: "55sO-xxxxxxxxxxxxxxxxxx" # 企业微信应用 Secret
这两个参数是否设置正常,还有改完记得 restart web
from chatgpt-wechat.
access_token 生成错误,你检查下 CorpID: "wwxxxxxxxxxxxxxxxxxxxx" # 企业微信 CorpID DefaultAgentSecret: "55sO-xxxxxxxxxxxxxxxxxx" # 企业微信应用 Secret 这两个参数是否设置正常,还有改完记得 restart web
已经解决了,还是网络问题,全局代理把请求不知道丢哪里去了。
from chatgpt-wechat.
用了感觉还不错的话,可以考虑给个 🌟
from chatgpt-wechat.
用了感觉还不错的话,可以考虑给个 🌟
必须的,已经小范围推广给其他朋友了。
from chatgpt-wechat.
十分感谢🙏 😊
from chatgpt-wechat.
Related Issues (20)
- 大佬,实现群聊有计划吗 HOT 4
- 大佬,这2个端口可以改吗? 可以自己定义吗 HOT 1
- 使用Gemini API报错 HOT 2
- 我端口是8080 如何修改配置 HOT 1
- 微信客服错误 HOT 2
- Gemini pro support HOT 17
- clear命令怎么失效了 HOT 2
- 可否优化返回消息里直接显示图片而不是图片链接? HOT 1
- 在启用流式回复 Stream: true 后,返回的消息顺序不正确。 HOT 1
- 建议在配置文件增加企业微信api地址 HOT 1
- 企业微信客服报错 HOT 5
- bug:已对接one-api,由于代码内限制,无法使用除openAI,gemini之外的模型
- build的时候总是卡住 HOT 3
- gpt-4 不存在 HOT 4
- 老大,有空请看看xtekky/gpt4free,很火且无需API
- 有arm版本的吗
- 考虑加入对国产的开源llmm模型 chatlm6b支持吗?
- 企微welcome消息不生效 HOT 1
- docker-compose build 报错 HOT 1
- 请教企业微信客服功能 HOT 5
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 chatgpt-wechat.