Comments (15)
现在问题解决了。
服务是部署在render上,因为我们公司企业微信有自己的服务器,所以可信IP部分配置是没有通过的。
所以现在的请求是企业微信请求的消息,先到我们公司自己的域名上,可信IP部分配置的也是我们公司自己的服务器IP。
我们自己的服务器收到消息之后,再中转传给Render的链接。拿到GPT返回的消息之后,也是先将返回消息传给我们自己的公司服务器,再传给企业微信。
找技术同事研究了下代码,发现是GPT返回的结果,直接传给了「企业微信」,所以接收失败。改了下面这两个部分。
【comm/message.js 和 chat\text.js】https://qyapi.weixin.qq.com/cgi-bin 改成:https://公司域名/cgi-bin
from chatgpt-wework-robot.
https://render.com/docs/custom-domains
按照这里配置。
from chatgpt-wework-robot.
好的,非常感谢,域名部分已经配置完毕。可信IP也设置完毕,但是log这里,一直是未定义Token,请问原因是?谢谢🙏。
from chatgpt-wework-robot.
这是获取Accesstoken 失败了, 请检查CORPID SECRET 这两个参数。
from chatgpt-wework-robot.
好的,确实是在复制的时候,有个参数多了一个字母。现在TOKEN问题解决了。
不过还是没能成功,给Bot发消息没有任何的回复,连「生成回答」都没有出现。
企业微信端的「域名」和「可信IP」都已经部署了。所以收不到消息的话,是不是还是「可信IP」的问题???谢谢
不知道和域名的证书这部分有没有什么关系???
from chatgpt-wework-robot.
这是哪里发出来的?
from chatgpt-wework-robot.
这是哪里发出来的?
就是企业微信客户端添加应用,给机器人应用发消息,没有收到任何的回复。连「正在生成回答」也没有出现。Log地方也看不到任何的消息,没有与GPT 3.5建立对话,不清楚是不是「可信IP」问题,还是证书问题。
from chatgpt-wework-robot.
不知道你这啥情况,你得调试一下了,可信ip 保存成功就可以了, 域名能ping通? 浏览器里访问一下,看下日志有没有。
from chatgpt-wework-robot.
如果找到原因,请把问题和解决方法贴上来。有其他疑问,也可以继续提出来。
from chatgpt-wework-robot.
不知道你这啥情况,你得调试一下了,可信ip 保存成功就可以了, 域名能ping通? 浏览器里访问一下,看下日志有没有。
好的,我再研究一下,谢谢。通过CNAME转的域名,不加「/message」是可以ping通的。浏览器访问没有日志出现。
等研究通了,我来回复解决方法。
from chatgpt-wework-robot.
不知道你这啥情况,你得调试一下了,可信ip 保存成功就可以了, 域名能ping通? 浏览器里访问一下,看下日志有没有。
浏览器直接访问【render生成的域名链接 + message】,出现「urlSetting Error!」的错误。感觉是这里的错误造成的。
wework-chatgpt-zckl.onrender.com
from chatgpt-wework-robot.
这是正常的,这里说明你服务是可访问,这是企业微信验证url , 因为你无法模拟他的参数,所以验证不通过。问题是你的消息发出去,为什么服务端收不到。
from chatgpt-wework-robot.
url 设置保存提示成功了吗?
from chatgpt-wework-robot.
url 设置保存提示成功了吗?
是的,URL设置保存是成功的,这块没有问题。
可能还是【可信IP】的问题,「可信IP」因为我们企业微信经过企业认证,有自己的企业服务器。
所以是将render上的三个IP地址,转为我们公司自己的服务器IP。大概率就是这步出现的问题。
from chatgpt-wework-robot.
是怎么转的? 服务部署在哪,不是部署在render 上吗?
from chatgpt-wework-robot.
Related Issues (19)
- OPENAI回调失败--bug fixed HOT 20
- 域名已经无法调用了 HOT 4
- 正常运行后,不返回回复 HOT 1
- 显示“正在生成回答”,log里提示<conversation.js:29>false HOT 1
- 显示open-ai错误 HOT 8
- OpenAI happen error! HOT 7
- OpenAI Happen ERROR的问题 HOT 5
- 微信群二维码更新一下 HOT 3
- 您好 二维码过期可以更新一下吗 HOT 1
- 请问支持企业微信群聊吗? HOT 1
- 回答问题出错导致服务挂了 HOT 1
- 部署失败 HOT 3
- 为什么一样的问题,机器人使用API回答,跟在chat.openAI的网页回答会不一样 HOT 1
- 企业微信里无法保存。 HOT 1
- 部署以后只有一个正在生成回答 HOT 1
- openapi回调地址请求不通过,多次重新Manual deploy都不行。 HOT 7
- 正常运行后,不返回回复 HOT 4
- 聊天框输出文本时url编码混乱 HOT 2
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-wework-robot.