There are several possible reasons for the occurrence of error code 30001:
When the IM backend returns an error code, it also returns the detailed error information, and users can identify the cause of the error based on the error information.
The request packet of the profile/relationship chain system contains a From_Account field, which is used to indicate the request sender. If the value of the From_Account field in the request packet is inconsistent with the actual sender, the IM backend considers that the request was initiated by the app backend. In this case, the backend checks whether the request sender has app admin permissions. If the actual sender is not an admin, error 30004/40004 is returned.
To allow non-friend users to send messages, disable the relationship chain for one-to-one chat message verification in the IM console. To forbid non-friend users to send messages, enable the verification. It takes 5 minutes for the setting to take effect.