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

Bug: Webhooks answer mechanism is abnormal #2166

Closed
fx10007 opened this issue Apr 3, 2024 · 1 comment
Closed

Bug: Webhooks answer mechanism is abnormal #2166

fx10007 opened this issue Apr 3, 2024 · 1 comment
Labels
bug Categorizes issue or PR as related to a bug.

Comments

@fx10007
Copy link

fx10007 commented Apr 3, 2024

What happened?

The response packet is abnormal. Procedure

If the status returned by the reply packet is not 0 and nextCode is 1, further execution should be refused.

Problem encountered: The execution actually continued. The message was sent to the recipient

What did you expect to happen?

The expected message should not be delivered to the recipient

How can we reproduce it (as minimally and precisely as possible)?

http://www.example.com/callbackBeforeSendSingleMsgCommand?contenttype=json

c.JSON(http.StatusOK, gin.H{
	"actionCode": 1,
	"errCode":    6001,
	"errMsg":     "内容违规",
	"errDlt":     "内容违规",
	"nextCode":   1,
})

Anything else we need to know?

No response

version

open-im-server : latest edition
open-im-chat: latest edition

Cloud provider

ali Cloud

OS version

```console # On Linux: $ cat /etc/os-release # paste output here $ uname -a # paste output here # On Windows: C:\> wmic os get Caption, Version, BuildNumber, OSArchitecture # paste output here ```

Install tools

@fx10007 fx10007 added the bug Categorizes issue or PR as related to a bug. label Apr 3, 2024
@skiffer-git
Copy link
Member

Please try using version 3.7, and if there are any issues, feel free to reopen the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

2 participants