open-im-server icon indicating copy to clipboard operation
open-im-server copied to clipboard

[BUG]An error occurred when I Create group by api after set webhook 'callbackBeforeMemberJoinGroupCommand'

Open yanqinsc opened this issue 1 year ago • 3 comments

OpenIM Server Version

3.7

Operating System and CPU Architecture

Windows (AMD)

Deployment Method

Source Code Deployment

Bug Description and Steps to Reproduce

An error occurred when I Create group by api after set webhook 'callbackBeforeMemberJoinGroupCommand'。 Logs show that the error occurred before the webhook arrive. Debug log as follows:

local.DEBUG: apiCall res: {"errCode":90004,"errMsg":"HTTP request failed: Post "http://127.0.0.1/api/callback/callbackBeforeMemberJoinGroupCommand": context deadline exceeded, post url=http://127.0.0.1/api/callback/callbackBeforeMemberJoinGroupCommand: 90004 NetworkError","errDlt":"HTTP request failed: Post "http://127.0.0.1/api/callback/callbackBeforeMemberJoinGroupCommand": context deadline exceeded, post url=http://127.0.0.1/api/callback/callbackBeforeMemberJoinGroupCommand: 90004 NetworkError"}
[2024-06-26 15:23:22] local.INFO: webhook:callbackBeforeMemberJoinGroupCommand {"callbackCommand":"callbackBeforeMemberJoinGroupCommand","groupID":"56","userID":"9267410449","ex":null,"groupEx":"{"niceId":56}"}

Screenshots Link

No response

yanqinsc avatar Jun 26 '24 07:06 yanqinsc

Can you provide more details? For example, request parameters or more error information. Please make sure that you have correctly set the webhook URL and that the corresponding service is enabled.

icey-yu avatar Jun 27 '24 03:06 icey-yu

Has the webhook URL been set up, and is the API functioning properly?

skiffer-git avatar Jun 28 '24 01:06 skiffer-git

Can you provide more details? For example, request parameters or more error information. Please make sure that you have correctly set the webhook URL and that the corresponding service is enabled.

The webhook's config is correct. the webhook been called in 4 places. err occurred only in createGroup methond. create group by server api .

yanqinsc avatar Jul 15 '24 11:07 yanqinsc

The correct command should be:callbackBeforeJoinGroupCommand

icey-yu avatar Oct 08 '24 04:10 icey-yu