新浪微博API错误代码说明对照表 http://open.weibo.com/wiki/Error_code
http://open.weibo.com/wiki/Error_code
这篇文章资料是从新浪微博开发平台分享过来,一方面是博主自己开发过程遇到问题对错误代码的快捷查询,不用每次都得到官方找;另一方面,分享给大家学习收藏,并且有些错误代码原因会进行些扩展或提供解决方案。有人说,新浪微博开放平台的error_code写的比较清楚,对照表一看就知道问题所在。我觉得QQ平台的错误返回码说明文档也不错的,直接提供了解决方案的链接文档。
直入正文,微博平台错误代码分为两种:系统级错误代码(以数字1开头)、:服务级错误代码(以数字2开头),错误代码以JSON格式返回给客户端的。如下所示:
{
"request" : "/statuses/update.json",
"error_code" : "10006",
"error" : "Source paramter (appkey) is missing."
}
下面分别是系统级错误代码与服务级错误代码的详细对照表(提示:使用Ctrl+F组合键查询错误码更方便)
系统级错误代码
| 错误代码 | 错误信息 | 详细描述 |
| 10001 | System error | 系统错误 |
| 10002 | Service unavailable | 服务暂停 |
| 10003 | Remote service error | 远程服务错误 |
| 10004 | IP limit | IP限制不能请求该资源 |
| 10005 | Permission denied, need a high level appkey | 该资源需要appkey拥有授权 |
| 10006 | Source paramter (appkey) is missing | 缺少source (appkey) 参数 |
| 10007 | Unsupport mediatype (%s) | 不支持的MediaType (%s) |
| 10008 | Param error, see doc for more info | 参数错误,请参考API文档 |
| 10009 | Too many pending tasks, system is busy | 任务过多,系统繁忙 |
| 10010 | Job expired | 任务超时 |
| 10011 | RPC error | RPC错误 |
| 10012 | Illegal request | 非法请求 |
| 10013 | Invalid weibo user | 不合法的微博用户 |
| 10014 | Insufficient app permissions | 应用的接口访问权限受限 |
| 10016 | Miss required parameter (%s) , see doc for more info | 缺失必选参数 (%s),请参考API文档 |
| 10017 | Parameter (%s)’s value invalid, expect (%s) , but get (%s) , see doc for more info | 参数值非法,需为 (%s),实际为 (%s),请参考API文档 |
| 10018 | Request body length over limit | 请求长度超过限制 |
| 10020 | Request api not found | 接口不存在 |
| 10021 | HTTP method is not suported for this request | 请求的HTTP METHOD不支持,请检查是否选择了正确的POST/GET方式 |
| 10022 | IP requests out of rate limit | IP请求频次超过上限 |
| 10023 | User requests out of rate limit | 用户请求频次超过上限 |
| 10024 | User requests for (%s) out of rate limit | 用户请求特殊接口 (%s) 频次超过上限 |
服务级错误代码
| 错误代码 | 错误信息 | 详细描述 |
| 20001 | IDs is null | IDs参数为空 |
| 20002 | Uid parameter is null | Uid参数为空 |
| 20003 | User does not exists | 用户不存在 |
| 20005 | Unsupported image type, only suport JPG, GIF, PNG | 不支持的图片类型,仅仅支持JPG、GIF、PNG |
| 20006 | Image size too large | 图片太大 |
| 20007 | Does multipart has image | 请确保使用multpart上传图片 |
| 20008 | Content is null | 内容为空 |
| 20009 | IDs is too many | IDs参数太长了 |
| 20012 | Text too long, please input text less than 140 characters | 输入文字太长,请确认不超过140个字符 |
| 20013 | Text too long, please input text less than 300 characters | 输入文字太长,请确认不超过300个字符 |
| 20014 | Param is error, please try again | 安全检查参数有误,请再调用一次 |
| 20015 | Account or ip or app is illgal, can not continue | 账号、IP或应用非法,暂时无法完成此操作 |
| 20016 | Out of limit | 发布内容过于频繁 |
| 20017 | Repeat content | 提交相似的信息 |
| 20018 | Contain illegal website | 包含非法网址 |
| 20019 | Repeat conetnt | 提交相同的信息 |
| 20020 | Contain advertising | 包含广告信息 |
| 20021 | Content is illegal | 包含非法内容 |
| 20022 | Your ip’s behave in a comic boisterous or unruly manner | 此IP地址上的行为异常 |
| 20031 | Test and verify | 需要验证码 |
| 20032 | Update success, while server slow now, please wait 1-2 minutes | 发布成功,目前服务器可能会有延迟,请耐心等待1-2分钟 |
| - | - | - |
| 20101 | Target weibo does not exist | 不存在的微博 |
| 20102 | Not your own weibo | 不是你发布的微博 |
| 20103 | Can’t repost yourself weibo | 不能转发自己的微博 |
| 20104 | Illegal weibo | 不合法的微博 |
| 20109 | Weibo id is null | 微博ID为空 |
| 20111 | Repeated weibo text | 不能发布相同的微博 |
| - | - | - |
| 20201 | Target weibo comment does not exist | 不存在的微博评论 |
| 20202 | Illegal comment | 不合法的评论 |
| 20203 | Not your own comment | 不是你发布的评论 |
| 20204 | Comment id is null | 评论ID为空 |
| - | - | - |
| 20301 | Can’t send direct message to user who is not your follower | 不能给不是你粉丝的人发私信 |
| 20302 | Illegal direct message | 不合法的私信 |
| 20303 | Not your own direct message | 不是属于你的私信 |
| 20305 | Direct message does not exist | 不存在的私信 |
| 20306 | Repeated direct message text | 不能发布相同的私信 |
| 20307 | Illegal direct message id | 非法的私信ID |
| - | - | - |
| 20401 | Domain not exist | 域名不存在 |
| 20402 | Wrong verifier | Verifier错误 |
| - | - | - |
| 20501 | Source_user or target_user does not exists | 参数source_user或者target_user的用户不存在 |
| 20502 | Please input right target user id or screen_name | 必须输入目标用户id或者screen_name |
| 20503 | Need you follo w user_id |
参数user_id必须是你关注的用户 |
| 20504 | Can not follow yourself | 你不能关注自己 |
| 20505 | Social graph updates out of rate limit | 加关注请求超过上限 |
| 20506 | Already followed | 已经关注此用户 |
| 20507 | Verification code is needed | 需要输入验证码 |
| 20508 | According to user privacy settings,you can not do this | 根据对方的设置,你不能进行此操作 |
| 20509 | Private friend count is out of limit | 悄悄关注个数到达上限 |
| 20510 | Not private friend | 不是悄悄关注人 |
| 20511 | Already followed privately | 已经悄悄关注此用户 |
| 20512 | Please delete the user from you blacklist before you follow the user | 你已经把此用户加入黑名单,加关注前请先解除 |
| 20513 | Friend count is out of limit! | 你的关注人数已达上限 |
| 20521 | Hi Superman, you have concerned a lot of people, have a think of how to make other people concern about you! ! If you have any questions, please contact Sina customer service: 400 690 0000 |
hi 超人,你今天已经关注很多喽,接下来的时间想想如何让大家都来关注你吧!如有问题,请联系新浪客服:400 690 0000 |
| 20522 | Not followed | 还未关注此用户 |
| 20523 | Not followers | 还不是粉丝 |
| 20524 | Hi Superman, you have cancelled concerning a lot of people, have a think of how to make other people concern about you! ! If you have any questions, please contact Sina customer service: 400 690 0000 |
hi 超人,你今天已经取消关注很多喽,接下来的时间想想如何让大家都来关注你吧!如有问题,请联系新浪客服:400 690 0000 |
| - | - | - |
| 20601 | List name too long, please input text less than 10 characters | 列表名太长,请确保输入的文本不超过10个字符 |
| 20602 | List description too long, please input text less than 70 characters | 列表描叙太长,请确保输入的文本不超过70个字符 |
| 20603 | List does not exists | 列表不存在 |
| 20604 | Only the owner has the authority | 不是列表的所属者 |
| 20605 | Illegal list name or list description | 列表名或描叙不合法 |
| 20606 | Object already exists | 记录已存在 |
| 20607 | DB error, please contact the administator | 数据库错误,请联系系统管理员 |
| 20608 | List name duplicate | 列表名冲突 |
| 20610 | Does not support private list | 目前不支持私有分组 |
| 20611 | Create list error | 创建列表失败 |
| 20612 | Only support private list | 目前只支持私有分组 |
| 20613 | You hava subscriber too many lists | 订阅列表达到上限 |
| 20614 | Too many lists, see doc for more info | 创建列表达到上限,请参考API文档 |
| 20615 | Too many members, see doc for more info | 列表成员上限,请参考API文档 |
| - | - | - |
| 20701 | Repeated tag text | 不能提交相同的收藏标签 |
| 20702 | Tags is too many | 最多两个收藏标签 |
| 20703 | Illegal tag name | 收藏标签名不合法 |
| - | - | - |
| 20801 | Trend_name is null | 参数trend_name是空值 |
| 20802 | Trend_id is null | 参数trend_id是空值 |
| - | - | - |
| 20901 | Error: in blacklist | 错误:已经添加了黑名单 |
| 20902 | Error: Blacklist limit has been reached. | 错误:已达到黑名单上限 |
| 20903 | Error: System administrators can not be added to the blacklist. | 错误:不能添加系统管理员为黑名单 |
| 20904 | Error: Can not add yourself to the blacklist. | 错误:不能添加自己为黑名单 |
| 20905 | Error: not in blacklist | 错误:不在黑名单中 |
| - | - | - |
| 21001 | Tags parameter is null | 标签参数为空 |
| 21002 | Tags name too long | 标签名太长,请确保每个标签名不超过14个字符 |
| - | - | - |
| 21101 | Domain parameter is error | 参数domain错误 |
| 21102 | The phone number has been used | 该手机号已经被使用 |
| 21103 | The account has bean bind phone | 该用户已经绑定手机 |
| 21104 | Wrong verifier | Verifier错误 |
| - | - | - |
| 21301 | Auth faild | 认证失败 |
| 21302 | Username or password error | 用户名或密码不正确 |
| 21303 | Username and pwd auth out of rate limit | 用户名密码认证超过请求限制 |
| 21304 | Version rejected | 版本号错误 |
| 21305 | Parameter absent | 缺少必要的参数 |
| 21306 | Parameter rejected | OAuth参数被拒绝 |
| 21307 | Timestamp refused | 时间戳不正确 |
| 21308 | Nonce used | 参数nonce已经被使用 |
| 21309 | Signature method rejected | 签名算法不支持 |
| 21310< /td> |
Signature invalid | 签名值不合法 |
| 21311 | Consumer key unknown | 参数consumer_key不存在 |
| 21312 | Consumer key refused | 参数consumer_key不合法 |
| 21313 | Miss consumer key | 参数consumer_key缺失 |
| 21314 | Token used | Token已经被使用 |
| 21315 | Token expired | Token已经过期 |
| 21316 | Token revoked | Token不合法 |
| 21317 | Token rejected | Token不合法 |
| 21318 | Verifier fail | Pin码认证失败 |
| 21319 | Accessor was revoked | 授权关系已经被解除 |
| 21320 | OAuth2 must use https | 使用OAuth2必须使用https |
| 21321 | Applications over the unaudited use restrictions | 未审核的应用使用人数超过限制 |
| 21327 | Expired token | token过期 |
| - | - | - |
| 21501 | Urls is null | 参数urls是空的 |
| 21502 | Urls is too many | 参数urls太多了 |
| 21503 | IP is null | IP是空值 |
| 21504 | Url is null | 参数url是空值 |
| - | - | - |
| 21601 | Manage notice error, need auth | 需要系统管理员的权限 |
| 21602 | Contains forbid world | 含有敏感词 |
| 21603 | Applications send notice over the restrictions | 通知发送达到限制 |
| - | - | - |
| 21701 | Manage remind error, need auth | 提醒失败,需要权限 |
| 21702 | Invalid category | 无效分类 |
| 21703 | Invalid status | 无效状态码 |
| - | - | - |
| 21901 | Geo code input error | 地理信息输入错误 |
另附一篇:QQ互联开发平台公共返回码说明
新浪微博API错误代码说明对照表 http://open.weibo.com/wiki/Error_code的更多相关文章
- 以短链服务为例,探讨免AppKey、免认证、Ajax跨域调用新浪微博API
新浪微博的API官方提供了很多种调用方式,支持编程的,归根结底就是两种: 1.基于Oauth协议,使用Open API.(http://open.weibo.com/wiki/%E6%8E%88%E6 ...
- 【重要】新浪微博api研究
# -*- coding: utf-8 -*- #python 27 #xiaodeng #新浪微博api研究 ''' 3.SDK的使用规则: 1)使用微博API,需要通过用户的授权,获取用户的授权码 ...
- 新浪微博API Oauth2.0 认证
原文链接: http://rsj217.diandian.com/post/2013-04-17/40050093587 本意是在注销账号前保留之前的一些数据.决定用python 爬取收藏.可是未登录 ...
- python编程之API入门: (二)python3中使用新浪微博API
回顾API使用的流程 通过百度地图API的使用,我理解API调用的一般流程为:生成API规定格式的url->通过urllib读取url中数据->对json格式的数据进行解析.下一步,开始研 ...
- 新浪微博API生成短链接
通过新浪微博API,生成短链接,支持一次性转多个长链接 什么是短链接 短链接,通俗来说,就是将长的URL网址,通过程序计算等方式,转换为简短的网址字符串. 短链接服务 国内各大微博都推出了自己的短链接 ...
- java parse 带英文单词的日期字符串 转 date (转化新浪微博api返回的时间)
拂晓风起 专注前端技术cocos2d.js.flash.html5,联系:kenkofox@qq.com.如果读者要找腾讯工作机会,请不吝推荐简历. 博客园 首页 新闻 新随笔 联系 管理 订阅 随笔 ...
- 新浪微博API使用初步介绍——解决回调地址的问题
# -*- coding: utf-8 -*- #python 27 #xiaodeng #新浪微博API使用初步介绍——解决回调地址的问题 #http://blog.csdn.net/monsion ...
- 新浪微博API开放平台进行程序开发第一步(java)
申请开发者权限步骤: 1.登录sina微博,点击“应用” 2.点击“微博开发平台 我也要做开发者” 3.点击“我的应用”,填写“开发者信息” 4.点击“创建应用”,就是你将要开发的微博应用程序,可以是 ...
- 新浪微博API的使用Python
本文记录了用新浪微博官方Python SDK调用API进行开发的流程. 准备工作 申请成为开发者并创建一个应用: 首先要有一个新浪微博的账号,然后去新浪微博开放平台(http://open.weibo ...
随机推荐
- 猜数字游戏_Python
预先设置数字变量 age_of_test = 25 #这里设置为25,也可随意 guess_age = int (input("guess age:")) if guess_age ...
- web前端学习(四)JavaScript学习笔记部分(2)-- JavaScript语法详解
2.1.Javascript语法-运算符(1) 复数运算符 %取余 ++ -- 赋值运算符 += -= *= /= %= 字符串操作 <!DOCTYPE html> <html la ...
- 【JZOJ4710】【NOIP2016提高A组模拟8.17】Value
题目描述 输入 输出 样例输入 5 8 2 10 7 5 1 11 8 13 3 样例输出 27 数据范围 解法 选定一些物品a[1],a[2],a[3]-a[num],尝试交换a[i],a[j],那 ...
- 入职9月,旷视孙剑106分钟讲述CV创业科研的5大区别
雷锋网按:本文为旷视科技首席科学家孙剑日前在 CCF-ADL上做的题为<如何在大公司和创业公司做好计算机视觉研究>的分享,主要介绍了近期计算机视觉的发展现状,ResNet基本原理和设计,旷 ...
- HTML 实体字符
有些字符,像(<)这类的,对HTML来说是有特殊意义的,所以这些字符是不允许在文本中使用的.要在HTML中显示(<)这个字符,我们就必须使用实体字符. 实体字符 有一些字符对HTML来讲是 ...
- Codeforces Round #192 (Div. 2) A. Cakeminator【二维字符数组/吃掉cake,并且是一行或者一列下去,但是该行/列必须没有草莓的存在】
A. Cakeminator time limit per test 1 second memory limit per test 256 megabytes input standard input ...
- 【水滴石穿】react-native-aze
说个题外话,早上打开电脑的时候,电脑变成彩色的了,锅是我曾经安装的一个chrome扩展,没有经过我的同意开启了 (也许是昨天迷迷糊糊开启了) 上午运行项目都不成功,还以为被黑客攻击了---然后下午就排 ...
- 【水滴石穿】FirstReactNativeProject
这个是一个小demo,项目地址为https://github.com/prsioner/FirstReactNativeProject 有注册,忘记密码还有登陆,应该是用到了react-navigat ...
- Javascript一些要点记录
1. == 比较,它会自动转换数据类型再比较 === 比较,它不会自动转换数据类型,如果数据类型不一致,返回false 大部分时候应该使用===来比较2. 使用'use strict'来强制通过var ...
- SQLServer —— 流程控制语句
一.IF - ELSE 语法: IF(条件) BEGIN 语句1 语句2 ... END ELSE BEGIN 语句1 语句2 ... END 说明: ELSE是可选部分,如果有多条语句,才需要BEG ...