首页新闻找找看学习计划

.NetCore 查询数据偶尔抛异常

0
[待解决问题]

Shinow.IDT.WebAPI.Controllers.SCM.StaffController.GetAppAndStaff (Shinow.IDT.WebAPI)|Web API 全局异常 AspectCore.DynamicProxy.AspectInvocationException: Exception has been thrown by the aspect of an invocation. ---> Authentication to host '172.0.66.156' for user 'IDT' using method 'caching_sha2_password' failed with message: Reading from the stream has failed.. ---> MySql.Data.MySqlClient.MySqlException: Authentication to host '172.0.66.156' for user 'IDT' using method 'caching_sha2_password' failed with message: Reading from the stream has failed. ---> MySql.Data.MySqlClient.MySqlException: Reading from the stream has failed. ---> System.IO.EndOfStreamException: Attempted to read past the end of the stream.

这是异常原文,有人知道怎么解决吗? 这个异常不是每次都抛,有时候刷新页面重新调方法还能成功。

冷水寒冰的主页 冷水寒冰 | 初学一级 | 园豆:4
提问于:2019-07-23 08:32
< >
分享
所有回答(1)
0

可能是与数据库服务器之间的 tcp 连接突然断开了

dudu | 园豆:41025 (高人七级) | 2019-07-23 08:50
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册