Coder Social home page Coder Social logo

Comments (15)

zapp926 avatar zapp926 commented on June 18, 2024 1

现在问题解决了。

服务是部署在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.

sytpb avatar sytpb commented on June 18, 2024

image

https://render.com/docs/custom-domains
按照这里配置。

from chatgpt-wework-robot.

zapp926 avatar zapp926 commented on June 18, 2024

Screen Shot 2023-06-13 at 1 56 00 PM
好的,非常感谢,域名部分已经配置完毕。可信IP也设置完毕,但是log这里,一直是未定义Token,请问原因是?谢谢🙏。

from chatgpt-wework-robot.

sytpb avatar sytpb commented on June 18, 2024

这是获取Accesstoken 失败了, 请检查CORPID SECRET 这两个参数。

from chatgpt-wework-robot.

zapp926 avatar zapp926 commented on June 18, 2024

好的,确实是在复制的时候,有个参数多了一个字母。现在TOKEN问题解决了。

不过还是没能成功,给Bot发消息没有任何的回复,连「生成回答」都没有出现。

企业微信端的「域名」和「可信IP」都已经部署了。所以收不到消息的话,是不是还是「可信IP」的问题???谢谢

不知道和域名的证书这部分有没有什么关系???

Screen Shot 2023-06-14 at 9 55 33 AM Screen Shot 2023-06-14 at 9 55 42 AM Screen Shot 2023-06-14 at 10 00 38 AM

from chatgpt-wework-robot.

sytpb avatar sytpb commented on June 18, 2024

这是哪里发出来的?

from chatgpt-wework-robot.

zapp926 avatar zapp926 commented on June 18, 2024

这是哪里发出来的?

就是企业微信客户端添加应用,给机器人应用发消息,没有收到任何的回复。连「正在生成回答」也没有出现。Log地方也看不到任何的消息,没有与GPT 3.5建立对话,不清楚是不是「可信IP」问题,还是证书问题。

from chatgpt-wework-robot.

sytpb avatar sytpb commented on June 18, 2024

不知道你这啥情况,你得调试一下了,可信ip 保存成功就可以了, 域名能ping通? 浏览器里访问一下,看下日志有没有。

from chatgpt-wework-robot.

sytpb avatar sytpb commented on June 18, 2024

如果找到原因,请把问题和解决方法贴上来。有其他疑问,也可以继续提出来。

from chatgpt-wework-robot.

zapp926 avatar zapp926 commented on June 18, 2024

不知道你这啥情况,你得调试一下了,可信ip 保存成功就可以了, 域名能ping通? 浏览器里访问一下,看下日志有没有。

好的,我再研究一下,谢谢。通过CNAME转的域名,不加「/message」是可以ping通的。浏览器访问没有日志出现。

等研究通了,我来回复解决方法。

from chatgpt-wework-robot.

zapp926 avatar zapp926 commented on June 18, 2024

不知道你这啥情况,你得调试一下了,可信ip 保存成功就可以了, 域名能ping通? 浏览器里访问一下,看下日志有没有。

浏览器直接访问【render生成的域名链接 + message】,出现「urlSetting Error!」的错误。感觉是这里的错误造成的。

wework-chatgpt-zckl.onrender.com

from chatgpt-wework-robot.

sytpb avatar sytpb commented on June 18, 2024

这是正常的,这里说明你服务是可访问,这是企业微信验证url , 因为你无法模拟他的参数,所以验证不通过。问题是你的消息发出去,为什么服务端收不到。

from chatgpt-wework-robot.

sytpb avatar sytpb commented on June 18, 2024

url 设置保存提示成功了吗?

from chatgpt-wework-robot.

zapp926 avatar zapp926 commented on June 18, 2024

url 设置保存提示成功了吗?

是的,URL设置保存是成功的,这块没有问题。

可能还是【可信IP】的问题,「可信IP」因为我们企业微信经过企业认证,有自己的企业服务器。

所以是将render上的三个IP地址,转为我们公司自己的服务器IP。大概率就是这步出现的问题。

from chatgpt-wework-robot.

sytpb avatar sytpb commented on June 18, 2024

是怎么转的? 服务部署在哪,不是部署在render 上吗?

from chatgpt-wework-robot.

Related Issues (19)

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.