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