-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
[BUG] webhooks did not call back #2629
Comments
Hello! Thank you for filing an issue. If this is a bug report, please include relevant logs to help us debug the problem. Join slack 🤖 to connect and communicate with our developers. |
|
|
Contact us for more information about open-im-server |
|
I handled callbacks this way in Java projects and successfully validated them in production environments.
java controller:
|
According to this configuration, the webhook route for beforeSendSingleMsg is http://xxx/robot/callbackExample/callbackBeforeSendSingleMsgCommand. You can check if the open route path is correct. If the log level is above 4, you can filter the logs by the keyword “webhook” and the webhook URL to confirm whether the webhook has been called. |
docker部署方式,在哪里修改webhooks的配置文件? |
Docker deployment method, where to modify the configuration file of webhooks? |
I'm sorry our documentation wasn't clear enough. The file that needs to be modified is the docker-compose.yml file, and the changes should be added under the environment section of openim-server. We will update the documentation to make this clearer. |
OpenIM Server Version
3.8.0
Operating System and CPU Architecture
Linux (AMD)
Deployment Method
Source Code Deployment
Bug Description and Steps to Reproduce
按照 https://docs.openim.io/zh-Hans/restapi/webhooks/example 教程文档配置,回调服务器接口是用java写的,配置了beforeSendSingleMsg和afterSendSingleMsg的enable为true,但发送单聊消息之前和之后都没有回调接口,用的web端发送消息
Screenshots Link
The text was updated successfully, but these errors were encountered: