Skip to main content
Troubleshooting

Error reference

The API error format, the license_required code and its feature values, common error messages by category with HTTP status and fixes, and MCP errors.

Response format

On error the API returns the matching HTTP status and JSON:

{"error": "<message in Chinese>"}

Endpoints that need Enterprise also return an error code and feature:

{"error": "此功能需要企业版授权", "code": "license_required", "feature": "asset_facts"}

Apart from license_required, errors carry no separate code. Callers should rely on the HTTP status, and use the error message for display and troubleshooting. Messages are returned in Chinese; the tables below give the message as returned with its meaning in English.

license_required

HTTP 403. Values of feature:

FeatureCovers
ssoCAS, OIDC and SAML single sign-on
feishu_directoryFeishu directory sync
feishu_docsFeishu docs: link detection, sync, search
asset_factsAsset facts, conflict checks, AI writing asset facts
ai_reviewAI review and the facts-need-review option on tokens
auditAudit log viewing and export

Fix: activate an Enterprise licence that includes the feature. See Licence.

AI API

MessageHTTPMeaningFix
缺少 Bearer Token401No Authorization: Bearer headerAdd the token
Token 无效或已吊销401The token is wrong, rotated or revokedCheck it under API tokens, and create or rotate one if needed, then update the configuration
Token 缺少权限: enrich403A read-only token called a write endpointUse a read and write token
请求格式错误: …400The body is not valid JSON or lacks a required fieldCheck the request against the REST API
记录不存在404Not found, or outside the token's read scopeCheck the ID, code and the token's read scope

POST /facts validates each fact separately. Errors for individual facts come back in errors[{index, error}] and do not stop the others being written.

Sign-in and permissions

MessageHTTPMeaningFix
未登录或会话已过期401No session, or the session has expired (12 hours by default)Sign in again
需要管理员权限403Someone other than a company admin called an admin endpointAsk a company admin
无权执行此操作403No edit rights on that area or groupAsk an admin with rights, or submit the link for review
该登录方式需要企业版授权,请联系管理员403A single sign-on source was used without an Enterprise licenceActivate Enterprise, or sign in with a local account, AD/LDAP or Feishu
用户数已达上限(N 人),请联系管理员升级授权403Creating an account or a first sign-in would exceed the user limitUpgrade to Enterprise or license more users. See Editions

Licence

MessageHTTPMeaningFix
此版本未内置授权公钥,无法安装授权,请升级到正式发布的版本503A development or test buildInstall an official release
请粘贴授权码或上传授权文件400Nothing was submittedPaste the licence code or choose the .lic file
授权安装失败:…400The licence code or file failed verification; the reason follows the colonAct on the reason. For example, offline licences must be uploaded as a .lic file, and a damaged file should be requested again from Reallysec
无法读取本机标识:…503/etc/machine-id cannot be read inside the containerCheck the file exists on the host and is mounted as in docker-compose.yml
客户编号过长400The customer number entered for the fingerprint request file is too longShorten it

Upgrades

MessageHTTPMeaningFix
在线检查更新已关闭409The version-check URL in .env is emptyUse offline packages, or restore the check URL
检查过于频繁,请稍后再试429Manual checks are limited to one every 30 secondsTry again shortly
升级助手未安装或未运行…409The updater is not running on the hostRun sudo ./install.sh updater <installation-directory> as root
未启用一键升级409One-click upgrades are turned off in docker-compose.ymlUpgrade manually, or restore the docker-compose.yml from the package
已有升级任务在进行中409Only one upgrade can run at a timeWait for the current upgrade to finish
没有可在线升级的新版本,请先检查更新409No new version information is availableChoose Check for updates
当前版本不能直接升级到该版本409The new version requires an intermediate version firstUpgrade to the intermediate version shown on the page first
只能升级到比当前更新的版本409The updater does not downgradeChoose a newer version
需要同时上传升级包(.tar.gz)和签名文件(.tar.gz.sig)400One of the two files is missingUpload both together
升级包签名校验失败:文件不完整、被修改,或不是官方发布的升级包400The signature does not matchDownload the package and signature file again
升级包是 linux/X 的,本机是 linux/Y400Architecture mismatchDownload the package for the server's architecture
上传中断或超过大小限制400The upload did not completeUpload again

Feishu

MessageHTTPMeaningFix
暂时无法连接飞书502The server cannot reach the Feishu Open Platform, or the app credentials are invalidCheck network access to open.feishu.cn and the App Secret
飞书应用未开通搜索权限(search:docs:read),请联系管理员502The Feishu app lacks the search permissionEnable it on the Feishu Open Platform and publish a new version
一次最多识别 200 个链接400Too many Feishu links in one bulk pasteAdd them in batches
同步间隔只能是 30 分钟、1 小时、6 小时或 1 天400Invalid sync interval when binding a groupChoose an interval offered on the page

MCP

MCP uses JSON-RPC 2.0 with HTTP status 200:

ErrorMeaning
-32700 parse errorThe body is not valid JSON
-32600 invalid requestNot a valid JSON-RPC request
-32601 method not foundUnsupported method
-32602 invalid params, unknown toolInvalid parameters, or the tool does not exist

When a tool fails, the result has isError: true with an explanation in content, for example when a read-only token calls a write tool (Token 缺少 enrich 权限) or an Enterprise tool is called without an Enterprise licence. A missing or invalid token returns HTTP 401.

On this page