Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用docker部署配置微信公众号无法通过 #2548

Open
2 tasks done
zihunyu opened this issue Mar 7, 2025 · 8 comments
Open
2 tasks done

使用docker部署配置微信公众号无法通过 #2548

zihunyu opened this issue Mar 7, 2025 · 8 comments

Comments

@zihunyu
Copy link

zihunyu commented Mar 7, 2025

前置确认

  • 我确认我运行的是最新版本的代码,并且安装了所需的依赖,在FAQS中也未找到类似问题。

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

  • 我已经搜索过issues和disscussions,没有跟我遇到的问题相关的issue

操作系统类型?

Linux

运行的python版本是?

other

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

Latest Release

运行的channel类型是?

wechatmp(公众号, 订阅号)

复现步骤 🕹

Image
图片为我docker-compose.yml部分
后面也用nginx代理了 但是访问 http://xxx:1234/wx 或者nginx代理的地址 /wx
curl 127.0.0.1/wx
'signature' 但是后台日志一直是403

[INFO][2025-03-07 05:51:23][keyword.py:42] - [keyword] inited.
[WARNING][2025-03-07 05:51:23][banwords.py:54] - [Banwords] init failed, ignore or see https://github.com/zhayujie/chatgpt-on-wechat/tree/master/plugins/banwords .
[WARNING][2025-03-07 05:51:23][plugin_manager.py:150] - Failed to init BANWORDS, diabled. [Errno 2] No such file or directory: '/app/plugins/banwords/banwords.txt'
[INFO][2025-03-07 05:51:23][linkai.py:35] - [LinkAI] inited, config={'group_app_map': {'测试群名1': 'default', '测试群名2': 'Kv2fXJcH'}, 'midjourney': {'enabled': False, 'auto_translate': True, 'img_proxy': True, 'max_tasks': 3, 'max_tasks_per_user': 1, 'use_image_create_prefix': True}, 'summary': {'enabled': False, 'group_enabled': True, 'max_file_size': 5000, 'type': ['FILE', 'SHARING']}}
[WARNING][2025-03-07 05:51:26][tool.py:27] - [tool] init failed, ignore
[WARNING][2025-03-07 05:51:26][plugin_manager.py:150] - Failed to init TOOL, diabled. config.json not found
[INFO][2025-03-07 05:51:26][role.py:69] - [Role] inited
[INFO][2025-03-07 05:51:26][dungeon.py:56] - [Dungeon] inited
[WARNING][2025-03-07 05:51:26][bdunit.py:42] - [BDunit] init failed, ignore
[WARNING][2025-03-07 05:51:26][plugin_manager.py:150] - Failed to init BDUNIT, diabled. config.json not found
[INFO][2025-03-07 05:51:26][hello.py:38] - [Hello] inited
[INFO][2025-03-07 05:51:26][finish.py:23] - [Finish] inited
172.22.0.1:46912 - - [07/Mar/2025 05:51:30] "HTTP/1.1 GET /wx" - 403 Forbidden
172.22.0.1:46930 - - [07/Mar/2025 05:51:41] "HTTP/1.1 GET /wx" - 403 Forbidden
172.22.0.1:46942 - - [07/Mar/2025 05:52:00] "HTTP/1.1 GET /wx" - 403 Forbidden

问题描述 😯

No response

终端日志 📒

<此处粘贴终端日志>
@6vision
Copy link
Collaborator

6vision commented Mar 10, 2025

公众号相关参数有误或者配置文件没生效吧?

@zihunyu
Copy link
Author

zihunyu commented Mar 11, 2025

公众号相关参数有误或者配置文件没生效吧?

我稍等再试一试 感觉应该是正确的

@yjjapple
Copy link

我也是这个问题,微信后台的访问请求地址就没进来

@zihunyu
Copy link
Author

zihunyu commented Mar 11, 2025

公众号相关参数有误或者配置文件没生效吧?

麻烦问下 我计划接入的是deepseek的接口 但是我看config.py中没有deepseek的配置 但是common/const.py写的支持deepseek
请问我config.json中 key和_api_base 使用哪个的 open_ai的吗

@zihunyu
Copy link
Author

zihunyu commented Mar 11, 2025

我也是这个问题,微信后台的访问请求地址就没进来

你是接入的哪个ai 我感觉我的应该是ai的问题

@zihunyu
Copy link
Author

zihunyu commented Mar 11, 2025

复核了一下配置文件 公众号的参数没问题 然后配置文件也生效了 因为我使用web 是可以正常使用的
应该就是微信公众号某个问题吧

@mela93
Copy link

mela93 commented Mar 12, 2025

Image

我看你的url端口是1234,端口不对吧,微信公众号后台只支持80或者443吧?http只能用80,https只能用443

@zihunyu
Copy link
Author

zihunyu commented Mar 12, 2025

Image 我看你的url端口是1234,端口不对吧,微信公众号后台只支持80或者443吧?http只能用80,https只能用443

对的 微信公众号后台只支持80或者443 因为docker使用80端口无法启动 权限不足 然后我docker启动之后 然后使用nginx代理的80端口 而且直接访问 url/wx 的地址也是看日志状态码也是403 在微信公众号验证的时候 就是提示返回状态码不是200 没有通过 但是访问的页面是 'signature'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants