hanfangyuan4396 / dify-on-wechat

本项目为 chatgpt-on-wechat下游分支, 额外对接了LLMOps平台 Dify,支持Dify智能助手模式,调用工具和知识库,支持Dify工作流。
MIT License
633 stars 84 forks source link

无论通过Docker或者源代码部署,扫码以后,能正常发送消息,但是只会回复“暂时遇到了一些问题,请您稍后重试~” #56

Open Caco355 opened 1 month ago

Caco355 commented 1 month ago

前置确认

⚠️ 搜索issues中是否已存在类似问题

操作系统类型?

Linux

运行的python版本是?

python 3.10

使用的dify-on-wechat版本是?

Latest Release

运行的channel类型是?

wx(个人微信, itchat)

复现步骤 🕹

image image

问题描述 😯

原先我用一台windwos电脑部署的,已经能够回答了,但是现在我想要部署到linux上,使用Docker部署启动扫码登录微信,能正常接受消息,但是无法回答

终端日志 📒

[INFO][2024-07-04 01:12:43][bridge.py:55] - create bot dify for chat
[INFO][2024-07-04 01:12:43][dify_bot.py:25] - [DIFY] query=你好
[WARNING][2024-07-04 01:12:43][dify_bot.py:131] - [DIFY] response text=<!DOCTYPE                                                                               html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>403</title>
<style type="text/css">
body {
    background-color: #f3f3f4;
    color: #676a6c;
    height: 100%;
    font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica N                                                                              eue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
}

.middle-box {
  max-width: 600px;
  z-index: 100;
  margin: 0 auto;
  padding-top: 40px;
  text-align: center;
}

.middle-box h1 {
  font-size: 170px;
  font-weight: 100;
  margin-top: 20px;
  margin-bottom: 10px;
}

.btn {
  border-radius: 3px;
  font-size: inherit;
  display: inline-block;
  width: 100px;
  height: 30px;
  line-height: 30px;
  background-color: #1ab394;
  border-color: #1ab394;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
}

.btn:hover {
  background-color: #1c8570;
}

.btn:active {
  background-image: none;
  outline: 0;
  -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
}

.buttons {
    margin-top: 30px;
}

</style>
</head>
<body>
    <div class="middle-box">
        <h1>403</h1>
        <h3 class="font-bold">Forbidden</h3>
        <div class="error-desc">�������为�����访�被                                                                              ���</div>
        <div class="buttons"><a class="btn btn-primary" onclick="javascript:hist                                                                              ory.back()">��</a></div>
    </div>
</body>
</html>
<span style="position: absolute;bottom: 0;left: 50%;transform: translate(-50%, 0                                                                              );">Request ID:  7387582390393114907</span> status_code=403
[INFO][2024-07-04 01:12:43][wechat_channel.py:214] - [WX] sendMsg=Reply(type=TEX                                                                              T, content=我暂时遇到了一些问题,请您稍后重试~), receiver=@33cd2df74bf81286cb09d                                                                              8574814e2db5022e4e4aca2093db57302aa39d396d7
hanfangyuan4396 commented 1 month ago

dify版本号和config.json配置是什么

Caco355 commented 1 month ago

dify版本号和config.json配置是什么

dify版本号:Version 0.6.8 配置截图: image 相同的配置,物理机windows设备使用正常,但是虚拟机linux和windows上都报错403

hanfangyuan4396 commented 1 month ago

看看这段乱码的含义吧,我也不知道为什么会报错:å� æ��é��é�®é¢�æ��è¡�为é��æ³�ï¼�æ�¨ç��访é�®è¢« æ��ç»�ã��