bmob-error-codes

Solid

Use when the user sees a Bmob error response with a numeric code (e.g. 9015, 101, 105, 206, 211, 9013, 10017, 10076) and needs to know what it means and how to fix it. Triggers: 'bmob error code', 'bmob 报错', 'bmob 9015', 'Bmob 错误', 'object not found', 'invalid field name', 'unique index cannot has duplicate value', 'QPS beyond the limit', 'mobilePhoneNumber already taken'. Covers Android SDK codes (9001-9023), iOS SDK codes (100, 20000-20030), REST API HTTP 401/500/400 + business codes 100-601 + 10001-10210. NOT for runtime debugging without an error code — for that read the platform skill (bmob-database-{javascript,android,ios,swift,flutter,restful}) and check logs.

API & Backend 2 stars 0 forks Updated today MIT

Install

View on GitHub

Quality Score: 78/100

Stars 20%
16
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Bmob 错误码字典 Bmob 的报错由三个独立编号空间组成: 1. **Android SDK 本地错误**:9001–9023(在 SDK 客户端侧抛出,不会走网络) 2. **iOS SDK 本地错误**:100、20000–20030(在 SDK 客户端侧抛出) 3. **REST API 服务端错误**:HTTP 状态码 + 业务码(401 / 500 / 400 + body 里的 `code` 字段,所有 SDK 的网络错误本质都是这个) > **关键诊断流程**:拿到错误后**先看是不是网络错误**(看响应体里有没有 `{ "code": ..., "error": "..." }`),如果是,按 REST API 错误码表查;如果没有响应体只有 SDK 抛出的本地 code(9xxx 或 2xxxx),按 SDK 本地表查。 ## 按现象反查(响应体 `error` 英文) | 现象 / `error` 关键词 | 业务码 | 详表 | |------------------------|--------|------| | `object not found` | 101 | 下文 REST §3 | | `invalid field name` | 105 | REST §3 | | `unique index cannot has duplicate value` | 211 等 | REST §3 | | `QPS beyond the limit` | 10076 | REST §4 | | `mobilePhoneNumber already taken` | 206 等 | REST §3 用户相关 | | `Could not find user` / 登录失败 | 101 / 201 | REST §3;查用户名密码 | | Android 仅 `9015`、描述含糊 | 9015 | 下文 §1 **9015 专题** | | iOS `20017` 初始化未完成 | 20017 | 下文 §2 | | HTTP 401 Unauthorized | — | 密钥错或签名错;[`shared/faq.md`](../../shared/faq.md) | | 权限 / ACL 拒绝 | 9015 / 9016 / 138 等 | [`shared/anti-patterns.md`](../../shared/anti-patterns.md);P1 `bmob-acl-and-roles` | 更多路由类问题:[`shared/faq.md`](../../shared/faq.md)。 ## 1. Android SDK 本地错误码(9001–9023) | 码 | 含义 | 常见原因 / 修复 | |---|---|---| | 9001 | Application Id 为空 | 没调用 `Bmob.initialize(context, "AppId")`;检查初始化时机是否在用 SDK 之前 | | 9002 | 解析返回数据出错 | 服务端返回非预期 JSON;查看原始 HTTP 响应 | | 9003 | 上传文件出错 | 文件路径、权限、网络任一问题 | | 9004 | 文件上传失败 | 同 9003,常配合 9022 | | 9005 | 批量操作超过 50 条 | Bmob 单次批量上限 50;拆分多次调用 | | 9006 | objectId 为空 | 更新/删...

Details

Author
bmob
Repository
bmob/agent-skills
Created
2 months ago
Last Updated
today
Language
Java
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

API & Backend Solid

bmob-database-android

Use when implementing Bmob NoSQL database CRUD in an Android Native project (Java or Kotlin). Triggers: io.github.bmob:android-sdk, Bmob.initialize(this, ...), BmobObject, BmobQuery, BmobUser, BmobInstallation, BmobFile, BmobRelation, BmobGeoPoint, BmobDate, SaveListener, UpdateListener, FindListener, QueryListener, BmobException, BmobContentProvider, AndroidManifest Bmob 配置. NOT for cross-platform JavaScript / WeChat Mini Program / Cocos Creator JS (use bmob-database-javascript), iOS / Swift (use bmob-database-ios), Flutter / Dart (use bmob-database-flutter), or raw HTTP from any other language (use bmob-database-restful). If Bmob MCP is configured, call get_project_tables via bmob-mcp before writing code.

2 Updated today
bmob
API & Backend Solid

bmob

Use whenever the user mentions Bmob backend cloud (Bmob, BmobApp, bmobapp.com, Bmob 后端云) for ANY task: design data tables, perform CRUD, sign up / login users, upload files, push notifications, send SMS, accept payments, write or invoke cloud functions, configure ACL / roles, debug error codes, or operate the project via the Bmob MCP server. This is the routing entry — it dispatches to platform-specific skills: bmob-database-{javascript,android,ios,swift,flutter,restful}, bmob-auth-*, bmob-storage-*, bmob-cloud-function-*, bmob-mcp, bmob-error-codes, bmob-bql, bmob-acl-and-roles. For operation-level MCP vs SDK vs REST routing, read shared/operation-routing.md. NOT a substitute for those sub-skills — once the platform and feature are clear, read and follow the matching sub-skill before writing code.

2 Updated today
bmob
API & Backend Solid

bmob-database-restful

Use when interacting with Bmob backend cloud over plain HTTP / curl from ANY language that lacks a Bmob SDK — Python (requests/httpx), Go (net/http), PHP (Guzzle), C# (HttpClient), Rust (reqwest), Ruby, Java backend, Bash, Deno, server-side scripting, data migration. Also use when the user explicitly wants curl or the raw REST API URL pattern. API base domain: https://api.codenow.cn (e.g. /1/classes/Token). Triggers: /1/classes/, /1/users, /1/batch, /1/cloudQuery, /1/timestamp, /1/requestSmsCode, X-Bmob-Application-Id, X-Bmob-REST-API-Key, X-Bmob-Safe-Sign, simple auth, encrypted auth, MD5 signature, curl bmob, Bmob REST API, Bmob HTTP. NOT for JavaScript / Node / Web / Mini Program (use bmob-database-javascript), Android (use bmob-database-android), iOS (use bmob-database-ios), or Flutter / Dart (use bmob-database-flutter). If Bmob MCP is configured, generate_code MCP tool can emit ready-to-use curl for 13 operation types — prefer it over hand-writing curl.

2 Updated today
bmob