tencent cloud

All product documents
Chat
DocumentationChatFAQsUser Profile and Relationship Chain
User Profile and Relationship Chain
Last updated: 2024-08-21 17:47:54
User Profile and Relationship Chain
Last updated: 2024-08-21 17:47:54

Why do I encounter error code 30001?

There are several possible reasons for the occurrence of error code 30001:
1. A request parameter is invalid.
2. User A initiates a friend request to user B, but user B is already in user A’s friend list.
3. User A initiates a friend deletion request to user B, but user B is not in user A’s friend list.
4. User A initiates a friend update request to update friend B’s contacts data, but friend B is not in user A’s friend list.
5. User A initiates a request to fetch the contacts data of friend B, but friend B is not in user A’s friend list.
6. User A initiates a blocklist request to user B, but user B is already in user A’s blocklist.
7. User A initiates a request to remove user B from the blocklist, but user B is not in user A’s blocklist.
When the Chat 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.

What should I do if error code 30004/40004 is returned when the RESTful API of the profile/contacts system is called?

The request packet of the profile/contacts 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 Chat 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.

How can I configure settings for messages sent by non-friend users?

To allow non-friend users to send messages, disable the contacts for one-to-one chat message verification in the Chat console. To forbid non-friend users to send messages, enable the verification. It takes 5 minutes for the setting to take effect.
Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback

Contact Us

Contact our sales team or business advisors to help your business.

Technical Support

Open a ticket if you're looking for further assistance. Our Ticket is 7x24 available.

7x24 Phone Support
Hong Kong, China
+852 800 906 020 (Toll Free)
United States
+1 844 606 0804 (Toll Free)
United Kingdom
+44 808 196 4551 (Toll Free)
Canada
+1 888 605 7930 (Toll Free)
Australia
+61 1300 986 386 (Toll Free)
EdgeOne hotline
+852 300 80699
More local hotlines coming soon