tencent cloud

Chat

News and Announcements
Release Notes
Announcements
Product Introduction
Overview
Basic Concepts
Scenarios
Features
Account System
User Profile and Relationship Chain
Message Management
Group Related
Official Account
Audio/Video Call
Use Limits
Purchase Guide
Billing Overview
Pricing
Purchase Instructions
Renewal Guide
Service Suspension Explanation
Refund Policy
Development Guidelines
Demo Zone
Activate Service
Free Demos
Quick Run
Download
SDK and Demo Source Code
Update Log
Chat Interaction (UI Included)
TUIKit Introduction
Getting Started
Full-feature Integration
Single-function Integration
Build with AI
Build Basic Interfaces
More Features
Customizing Appearance
Internationalization
Push Service
Overview
Noun explanation
Activate the Service
Quick Start
Manufacturer Channel
Statistics
Troubleshooting Tool
Client APIs
REST API
Push Callback
Advanced Features
Release Notes
Error Codes
FAQS
Desk
Overview
Quick Start
Integration Guide
Admin Operation Manual
Agent Manual
More Practices
Live Streaming Setup Guide
AI Chatbot
Super Large Entertainment and Collaboration Community
Discord Implementation Guide
How to Integrate Chat into Games
WhatsApp Channel-style Official Account Integration Solution
Send Red Packet
No UI Integration
Quick Start
SDK Integration
Initialization
Login and Logout
Message
Conversation
Group
Community Topic
User Profile and Relationship Chain
Offline Push
Cloud Search
Local Search
Official Channel Management
Client APIs
JavaScript
Android
iOS & macOS
Swift
Flutter
Electron
Unity
React Native
C APIs
C++
Server APIs
Secure authentication with UserSig
RESTful APIs
Webhooks
Console Guide
New Console Introduction
Creating and Upgrading an Application
Basic Configuration
Feature Configuration
Account Management
Group Management
Official Channel Management
Webhook Configuration
Usage
Viewing Guide for Resource Packages
Real-Time Monitor
Auxiliary Development Tools
Access Management
Advanced Features
FAQs
uni-app FAQs
Purchase
SDK
Account Authentication
User Profile and Relationship Chain
Message
Group
Audio-Video Group
Nickname and Profile Photo
Security Compliance Certification
Service Level Agreement
Security Compliance Certification
Chat Policies
Privacy Policy
Data Privacy and Security Agreement
Migration
Migration Solutions
Migration Solutions Lite
Error Codes
Contact Us
DocumentationChatFAQsUser Profile and Relationship Chain

User Profile and Relationship Chain

PDF
Focus Mode
Font Size
Last updated: 2025-11-06 16:09:47

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.

Why don't non-friend avatar or nickname updates reflect in real time in own session list and message list?

For specific reasons, click View Information nickname avatar related issues document.

Help and Support

Was this page helpful?

Help us improve! Rate your documentation experience in 5 mins.

Feedback