openimsdk / open-im-server

IM Chat
https://openim.io
Apache License 2.0
13.47k stars 2.37k forks source link

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

Open yanqinsc opened 4 weeks ago

yanqinsc commented 4 weeks ago

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

icey-yu commented 4 weeks ago

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.

skiffer-git commented 3 weeks ago

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

yanqinsc commented 1 week ago

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 .