本文介绍使用云消息队列 RocketMQ 版提供的商业版HTTP协议的SDK收发消息时可能遇到的错误码,以及建议的处理方式。
错误码  | 错误描述  | HTTP状态码  | 建议处理方式  | 
AccessDenied  | The OwnerId that your Access Key Id associated to is forbidden for this operation.  | 403  | 权限不足,请检查AccessKey ID和AccessKey Secret配置是否正确。 若您使用账号为RAM用户,您需要给RAM用户授予相关权限才能管理云消息队列 RocketMQ 版的资源。具体授权操作,请参见RAM主子账号授权。  | 
InvalidAccessKeyId  | The AccessKey Id you provided is not exist.  | 403  | AccessKey ID不存在,请检查AccessKey ID是否拼写正确。AccessKey ID获取方式,请参见创建AccessKey。  | 
InternalError  | Interal error.  | 500  | 系统错误,请提交工单联系技术支持人员处理。  | 
InternalServerError  | Interal error.  | 500  | 系统错误,请提交工单联系技术支持人员处理。  | 
InvalidAuthorizationHeader  | The Authorization header format is invalid.  | 400  | 签名格式不正确。详细信息,请参见签名机制。  | 
InvalidDateHeader  | The Date header format is invalid.  | 400  | Date字段不合法。详细信息,请参见公共参数。  | 
InvalidArgument  | The XML you provided did not validate against our published schema, cause by Element①.  | 400  | XML结构不正确。正确的XML结构,请参见对应的API文档:  | 
InvalidArgument  | The value of Element②should between Low③ and High④ seconds/bytes.  | 400  | 参数值非法,请根据提示调整。  | 
InvalidDigest  | The Content-MD5 you specified is invalid.  | 400  | 请求Header中Content-MD5不正确。请传递正确的取值或将该值置空。  | 
InvalidRequestURL  | Http request URL format invalid.  | 400  | 请求的URL不正确。正确的URL,请参见对应的API文档:  | 
InvalidQueryString  | Http request URL contains invalid querystring item “Element⑤”.  | 400  | 请求的URL不正确。正确的URL,请参见对应的API文档:  | 
MalformedXML  | The XML you provided was not well-formed.  | 400  | XML结构异常。正确的XML结构,请参见对应的API文档:  | 
MissingAuthorizationHeader  | Authorization header is required.  | 400  | 请求Header缺少字段,请参见公共参数。  | 
MissingDateHeader  | Date header is required.  | 400  | 请求Header缺少字段,请参见公共参数。  | 
MissingReceiptHandle  | ReceiptHandle is required.  | 400  | 请求缺少参数。详细信息,请参见对应的API文档:  | 
MessageNotExist  | Message not exist.  | 404  | Topic中无可用的消息。  | 
The receipt handle you provided has expired.  | 404  | 消费消息过慢导致消息重新回到队列生成新的ReceiptHandle,之前的ReceiptHandle失效。  | |
ReceiptHandleError  | The receipt handle you provide is not valid.  | 400  | 请求参数不合法。详细信息,请参见对应的API文档:  | 
SignatureDoesNotMatch  | The request signature we calculated does not match the signature you provided. Check your key and signing method.  | 403  | 请求签名异常。详细信息,请参见签名机制。  | 
TimeExpired  | The http request you sent is expired.  | 408  | 请求时间与云消息队列 RocketMQ 版HTTP服务器时间相差超过15分钟,建议检查本地时间。  | 
QpsLimitExceeded  | The qps limit is exceeded ⑥.  | 400  | Topic每秒的请求次数超过QPS限制。如果需要提高QPS限制,请提交工单联系技术支持人员处理。  | 
HTTPForbidden  | Consume message through HTTP and TCP at the same time is forbidden.  | 400  | 同一个Group ID不能同时被TCP和HTTP使用。  | 
InvalidArgument  | The length of message should not be larger than MaximumMessageSize.  | 400  | 消息体过长。详细信息,请参见对应的API文档:  | 
①②:在请求内容的XML元素名称。
③:在云消息队列 RocketMQ 版中某个参数的下限值。
④:在云消息队列 RocketMQ 版中某个参数的上限值。
⑤:在URL请求中QueryString的元素。
⑥:当前云消息队列 RocketMQ 版单个Topic的QPS上限。具体限制,请参见使用限制。