S00007

错误代码

S00007

报错信息

Closing connection with fd=xxx. Failed to parse the incoming connection with error xx , error code xxxx. Check your network connection. RefId:S00007

错误原因

Server 收到客户端(API 或者 Web)的请求后,首先解析消息的头部信息,以获取消息命令类型(HTTP,API ,STREAM 等)、sessionID、消息的属性信息(包括消息的 rootId、优先级、并行度、客户端 ID、消息 seqNo 等)、消息的长度信息等。在该解析过程中出现非预期错误,会导致该类型报错。

导致该问题的可能原因包括:

  1. 解析过程中出现了网络错误,例如,网络中断,对端断开连接。
  2. 消息协议错误,上面提到的消息头部信息必须按照固定的消息格式,如果违反该协议,也会导致该报错。
  3. 当前版本的 server 不支持解析出的消息类型。

解决办法

  1. 检查网络连接是否正常。
  2. 检查 API 和 server 版本是否适配,是否可能导致协议不兼容。
  3. 检查 API 是否使用了当前版本 server 不支持的新的协议类型。

错误码详情

1  Socket is disconnected/closed or file is closed. 
2  In non-blocking socket mode, there is no data ready for retrieval yet. 
3  Out of memory, no disk space, or no buffer for sending data in non-blocking socket mode. 
4  String size exceeds 64K or code size exceeds 1 MB during serialization over network. 
5  In non-blocking socket mode, a program is in pending connection mode. 
6  Invalid message format. 
7  Reach the end of a file or a buffer. 
8  File is readable but not writable. 
9  File is writable but not readable. 
10 A file doesn't exist or the socket destination is not reachable. 
11 The database file is corrupted. 
12 Not the leader node of the RAFT protocol. 
13 Unknown IO error.

以上 error code 为操作系统标准错误码。相关参考: