Comments (29)
from bot-on-anything.
ip有加到上面的白名单吗
from bot-on-anything.
ip有加到上面的白名单吗
我的也是token 一直失败;ip 加到白名单了
from bot-on-anything.
ip有加到上面的白名单吗
from bot-on-anything.
ip有加到上面的白名单吗
from bot-on-anything.
@ronaldinho1000 看下后台日志有没有显示结果返回, 或者有没有报错信息
from bot-on-anything.
ip加到那个白名单?
就在你截图的公众号url配置 上面
from bot-on-anything.
加了
from bot-on-anything.
from bot-on-anything.
@ronaldinho1000 看下后台日志有没有显示结果返回, 或者有没有报错信息
from bot-on-anything.
验证token 时,我手动改动了一点代码,因为这里老是检查token 不匹配,所以我就直接return 了;
from bot-on-anything.
你token验证失败 怎么解决的?
from bot-on-anything.
@ronaldinho1000 看下后台日志有没有显示结果返回, 或者有没有报错信息
from bot-on-anything.
ip加到那个白名单?
就在你截图的公众号url配置 上面
这个界面我能正常显示
from bot-on-anything.
我可以正常显示,ip也加入白名单了,但是配置服务器,提示token验证失败
from bot-on-anything.
@colorfbalck 你服务器上有运行什么反向代理吗? 我看浏览器访问werobot页面显示端口是 443,但是实际填的是80
from bot-on-anything.
@ronaldinho1000 把 channel 的type 切到 terminal,在终端试试看openai是不是正常的
from bot-on-anything.
@colorfbalck 你服务器上有运行什么反向代理吗? 我看浏览器访问werobot页面显示端口是 443,但是实际填的是80
内网8088 代理403
from bot-on-anything.
我终端模式是正常的;可以正常使用
from bot-on-anything.
@ronaldinho1000 把 channel 的type 切到 terminal,在终端试试看openai是不是正常的
from bot-on-anything.
@colorfbalck 你服务器上有运行什么反向代理吗? 我看浏览器访问werobot页面显示端口是 443,但是实际填的是80
内网8088 代理403
直接用80端口可以嘛
from bot-on-anything.
@ronaldinho1000 我晚点跑下试试
from bot-on-anything.
@colorfbalck 你服务器上有运行什么反向代理吗? 我看浏览器访问werobot页面显示端口是 443,但是实际填的是80
内网8088 代理403
直接用80端口可以嘛
from bot-on-anything.
切换到企业公众号还是 token错误,后台一直没有收到公众号的请求呢
from bot-on-anything.
微信的token 的验证,例程中是python2 ,如果你本地用的是python3 ,你需要把代码稍微改动一下;
encoding:utf-8
filename: handle.py
import hashlib
import web
class Handle(object):
def GET(self):
try:
data = web.input()
if len(data) == 0:
return "hello, this is handle view"
signature = data.signature
timestamp = data.timestamp
nonce = data.nonce
echostr = data.echostr
token = "123456" #请按照公众平台官网\基本配置中信息填写
list = [token, timestamp, nonce]
list.sort()
sha1 = hashlib.sha1()
sha1.update(list[0].encode('utf-8'))
sha1.update(list[1].encode('utf-8'))
sha1.update(list[2].encode('utf-8'))
hashcode = sha1.hexdigest()
print( "handle/GET func: hashcode, signature: ", hashcode, signature)
# return echostr
if hashcode == signature:
return echostr
else:
return ""
except Exception as Argument:
return Argument
from bot-on-anything.
微信的token 的验证,例程中是python2 ,如果你本地用的是python3 ,你需要把代码稍微改动一下;
encoding:utf-8
filename: handle.py
import hashlib
import web
class Handle(object):
def GET(self): try: data = web.input() if len(data) == 0: return "hello, this is handle view" signature = data.signature timestamp = data.timestamp nonce = data.nonce echostr = data.echostr token = "123456" #请按照公众平台官网\基本配置中信息填写 list = [token, timestamp, nonce] list.sort() sha1 = hashlib.sha1() sha1.update(list[0].encode('utf-8')) sha1.update(list[1].encode('utf-8')) sha1.update(list[2].encode('utf-8')) hashcode = sha1.hexdigest() print( "handle/GET func: hashcode, signature: ", hashcode, signature) # return echostr if hashcode == signature: return echostr else: return "" except Exception as Argument: return Argument
这修改的是那个文件 没有handle.py呢
from bot-on-anything.
用的python3.10
from bot-on-anything.
你要按照腾讯给的一些例子进行设置一下才行;
from bot-on-anything.
正常情况部署上去就自带token验证的,不需要增加代码的,看下是不是路由配置的问题
from bot-on-anything.
Related Issues (20)
- 增加 企业微信客户群聊机器人(类似个人微信那种) HOT 1
- 这个仓库还在维护吗, 如果还在维护, 我新增了一些功能比如微信订阅号请求StableDiffusion等, 可以放上来. HOT 3
- "code":99992361,"msg":"open_id cross app","error":{"message":"Refer to the documentation to fix the error: https://open.feishu.cn/document/uAjLw4CM/ugTN1YjL4UTN24CO1UjN/trouble-shooting/how-to-obtain-openid","log_id":"20230720164510B73862CD648745ABB2DD"} HOT 1
- 需求:能否接入本地部署的ChatGLM2-6B HOT 5
- KeyError: 'senderStaffId' HOT 4
- bing接口失效 HOT 1
- 希望加入对智谱AI的ChatGLM接口的支持(接口格式和openai不同)
- bard使用 聊天就报错闪退 HOT 2
- 项目与chatgpt-on-wechat项目一样支持接入知识库了吗入
- bing接口修复办法
- A
- 钉钉画图功能不能用
- bing&个人微信部署,扫码登录成功,对话就出错
- 个人微信wechat 必应bing 失效
- OpenAI SDK已更新到1.3.x,我为项目增加了连接OpenAI Assistant API的后端模型。
- Bard失效了吗? HOT 1
- 不维护了吗 HOT 1
- 在海外部署其他应用使用key可以成功使用chatgpt key,但是这个程序报错
- 微信公众号 设置好了 token 需要写其他的回调吗
- OpenAI接口没返回消息啊 我是新加坡的服务器 理论上是不需要挂代理的
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 bot-on-anything.