windows PC客户端能登陆,但发不出消息。日志显示:[ExtractParams] Invalid params length
请问这是啥原因呢,有时候服务器断电后重新启动也报错。以前是登不上,多折腾几下就好了。现在是登上了,但发不出消息。
[serveWs] Client ip: 192.168.3.79:60484
[E] 2023/06/30 16:49:59 [ExtractParams] Invalid params length[E] 2023/06/30 16:49:59 [ParseBackend] extract error: [ExtractParams] Invalid params length
[E] 2023/06/30 16:49:59 [TransitData] request json data decrypt error: [ExtractParams] Invalid params length
[E] 2023/06/30 16:49:59 Transit data error: [ExtractParams] Invalid params length
[I] 2023/06/30 16:50:04 [serveWs] Client ip: 192.168.2.40:54397
[E] 2023/06/30 16:50:26 [ExtractParams] Invalid params length
[E] 2023/06/30 16:50:26 [ParseBackend] extract error: [ExtractParams] Invalid params length
[E] 2023/06/30 16:50:26 [TransitData] request json data decrypt error: [ExtractParams] Invalid params length
[E] 2023/06/30 16:50:26 Transit data error: [ExtractParams] Invalid params length
[E] 2023/06/30 16:50:34 [ExtractParams] Invalid params length
[E] 2023/06/30 16:50:34 [ParseBackend] extract error: [ExtractParams] Invalid params length
[E] 2023/06/30 16:50:34 [TransitData] request json data decrypt error: [ExtractParams] Invalid params length
[E] 2023/06/30 16:50:34 Transit data error: [ExtractParams] Invalid params length
您的回复让我好像大概知道问题在哪了,为了给后来者看我先把日志贴出来:
/p> in lib\base\dao\dao.class.php on line 1381, last called by lib\base\dao\dao.class.php on line 761 through function sqlError.
in D:\nextcloud\zentaopms\framework\base\router.class.php on line 2729 when visiting
17:23:32 Undefined index: link in D:\nextcloud\zentaopms\module\common\model.php on line 1000 when visiting /?zentaosid=9hjg272r2v7v1m3ljkkardf1f1
17:23:32 Undefined index: link in D:\nextcloud\zentaopms\module\common\model.php on line 1000 when visiting /?zentaosid=9hjg272r2v7v1m3ljkkardf1f1
17:23:32 Undefined index: link in D:\nextcloud\zentaopms\module\common\model.php on line 1000 when visiting /index.php?m=index&f=index&zentaosid=9hjg272r2v7v1m3ljkkardf1f1&t=html&tid=vrdxqbmy
17:23:32 Undefined index: link in D:\nextcloud\zentaopms\module\common\model.php on line 1000 when visiting /index.php?m=index&f=index&zentaosid=9hjg272r2v7v1m3ljkkardf1f1&t=html&tid=vrdxqbmy
17:23:54 ERROR: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'normal' for key 'zt_im_message.mtype' <p>The sql is: INSERT INTO `zt_im_message` SET `gid` = '679b632a-d2b0-48e1-b12b-fc6543caded8',`cgid` = '4e538386-ba68-1042-d364-e073cda62704',`user` = '43',`content` = '11',`data` = '',`type` = 'normal',`contentType` = 'text',`date` = '2023-06-30 17:23:54',`deleted` = '0',`index` = '160'</p> in lib\base\dao\dao.class.php on line 1381, last called by lib\base\dao\dao.class.php on line 761 through function sqlError.
in D:\nextcloud\zentaopms\framework\base\router.class.php on line 2729 when visiting
已经解决了,该问题我推测是我们服务器突然断电导致mysql数据库异常。
zt_im_message这张表的type字段我设置了下唯一约束,然后保存。保存失败了。然后聊天系统突然就好了。
因为技术能力有限,不知道具体原因。
![](https://cdn.easycorp.cn/web/data/contact/avatar/1481227768.png)
![](/theme/default/default/images/main/icon-contact-split.png)
![](/theme/default/default/images/main/icon-contact-split.png)
![](/theme/default/default/images/main/icon-contact-split.png)
![](https://cdn.easycorp.cn/web/data/contact/17663906485.png)