ITPub博客

首页 > 应用开发 > > .NetCore 查询数据偶尔抛异常

.NetCore 查询数据偶尔抛异常

作者:lakefront 时间:2019-09-18 13:40:20 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.

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

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/2491/viewspace-3141218/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2019-08-05

  • 博文量
    99
  • 访问量
    625